Class KeyAlreadyExistsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.palantir.atlasdb.keyvalue.api.KeyAlreadyExistsException
-
- All Implemented Interfaces:
Serializable
public class KeyAlreadyExistsException extends RuntimeException
AKeyAlreadyExistsException
is thrown if an operation that conditionally updates aKeyValueService
fails because some data is already present in the underlying database.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyAlreadyExistsException(String msg)
KeyAlreadyExistsException(String msg, Iterable<Cell> existingKeys)
KeyAlreadyExistsException(String msg, Iterable<Cell> existingKeys, Iterable<Cell> knownSuccessfullyCommittedKeys)
KeyAlreadyExistsException(String msg, Throwable ex)
KeyAlreadyExistsException(String msg, Throwable ex, Iterable<Cell> existingKeys)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Cell>
getExistingKeys()
Collection<Cell>
getKnownSuccessfullyCommittedKeys()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
KeyAlreadyExistsException
public KeyAlreadyExistsException(String msg)
-
KeyAlreadyExistsException
public KeyAlreadyExistsException(String msg, Throwable ex, Iterable<Cell> existingKeys)
-
KeyAlreadyExistsException
public KeyAlreadyExistsException(String msg, Iterable<Cell> existingKeys)
-
-
Method Detail
-
getExistingKeys
public Collection<Cell> getExistingKeys()
-
getKnownSuccessfullyCommittedKeys
public Collection<Cell> getKnownSuccessfullyCommittedKeys()
-
-