Class PersistException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NotFoundException, OutdatedException, PermanentPersistException, ToManyPathQueryResultOverflowException

public class PersistException extends BaseRuntimeException
See Also:
  • Constructor Details

    • PersistException

      public PersistException()
    • PersistException

      public PersistException(String message)
    • PersistException

      public PersistException(Throwable cause)
    • PersistException

      public PersistException(String message, Throwable cause)
  • Method Details

    • getErrorKey

      public Optional<String> 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

      public void setErrorKey(String errorKey)
      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()