Class KeyAlreadyExistsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.palantir.atlasdb.keyvalue.api.KeyAlreadyExistsException
-
- All Implemented Interfaces:
com.palantir.logsafe.SafeLoggable
,Serializable
public class KeyAlreadyExistsException extends RuntimeException implements com.palantir.logsafe.SafeLoggable
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 logMessage, com.palantir.logsafe.Arg<?>... args)
KeyAlreadyExistsException(String logMessage, Iterable<Cell> existingKeys, com.palantir.logsafe.Arg<?>... args)
KeyAlreadyExistsException(String logMessage, Iterable<Cell> existingKeys, Iterable<Cell> knownSuccessfullyCommittedKeys, com.palantir.logsafe.Arg<?>... args)
KeyAlreadyExistsException(String logMessage, Throwable ex, com.palantir.logsafe.Arg<?>... args)
KeyAlreadyExistsException(String logMessage, Throwable ex, Iterable<Cell> existingKeys, com.palantir.logsafe.Arg<?>... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<com.palantir.logsafe.Arg<?>>
getArgs()
Collection<Cell>
getExistingKeys()
Collection<Cell>
getKnownSuccessfullyCommittedKeys()
@Safe String
getLogMessage()
-
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(@CompileTimeConstant String logMessage, Throwable ex, com.palantir.logsafe.Arg<?>... args)
-
KeyAlreadyExistsException
public KeyAlreadyExistsException(@CompileTimeConstant String logMessage, com.palantir.logsafe.Arg<?>... args)
-
KeyAlreadyExistsException
public KeyAlreadyExistsException(@CompileTimeConstant String logMessage, Throwable ex, Iterable<Cell> existingKeys, com.palantir.logsafe.Arg<?>... args)
-
KeyAlreadyExistsException
public KeyAlreadyExistsException(@CompileTimeConstant String logMessage, Iterable<Cell> existingKeys, com.palantir.logsafe.Arg<?>... args)
-
-
Method Detail
-
getExistingKeys
public Collection<Cell> getExistingKeys()
-
getKnownSuccessfullyCommittedKeys
public Collection<Cell> getKnownSuccessfullyCommittedKeys()
-
getLogMessage
@Safe public @Safe String getLogMessage()
- Specified by:
getLogMessage
in interfacecom.palantir.logsafe.SafeLoggable
-
getArgs
public List<com.palantir.logsafe.Arg<?>> getArgs()
- Specified by:
getArgs
in interfacecom.palantir.logsafe.SafeLoggable
-
-