Package ch.tocco.nice2.persist.core.api
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
,ToManyPathQueryResultOverflowException
- See Also:
-
Constructor Summary
ConstructorDescriptionPersistException
(String message) PersistException
(String message, Throwable cause) PersistException
(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionReturn the error key set for this exception.boolean
void
void
setErrorKey
(String errorKey) Sets an error key for this exception.Methods inherited from class java.lang.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
Return the error key set for this exception. The error key is used as a discrete value to programmatically distinguish between different error scenarios. -
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()
-