Class PersistException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.tocco.nice2.model.entity.api.BaseRuntimeException
ch.tocco.nice2.persist.core.api.PersistException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NotFoundException, OutdatedException, PermanentPersistException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPersistException(String message) PersistException(String message, Throwable cause) PersistException(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionReturn the error key set for this exception.booleanvoidvoidsetErrorKey(String errorKey) Sets an error key for this exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PersistException
public PersistException() -
PersistException
-
PersistException
-
PersistException
-
-
Method Details
-
getErrorKey
-
isErrorKeyPresent
public boolean isErrorKeyPresent() -
setErrorKey
Sets an error key for this exception. Error keys are meant to make it possible to distinguish between different error scenarios. Error handling code higher up the call stack may take other actions based on this key. -
removeErrorKey
public void removeErrorKey()
-