Class PersistenceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.jans.orm.exception.operation.PersistenceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DeleteException, DuplicateEntryException, EntryConvertationException, EntryNotFoundException, IncompatibleTypeException, SearchException, SearchScopeException

public class PersistenceException extends Exception
Generic operation layer exception
Author:
Yuriy Movchan Date: 29/01/2018
See Also:
  • Constructor Details

    • PersistenceException

      public PersistenceException(Throwable e)
      Constructor with wrapped exception
      Parameters:
      e - Wrapped LDAP exception
    • PersistenceException

      public PersistenceException(Throwable e, int errorCode)
    • PersistenceException

      public PersistenceException(String message)
      Constructor with detailed error
      Parameters:
      message - Detailed message
    • PersistenceException

      public PersistenceException(String message, int errorCode)
    • PersistenceException

      public PersistenceException(String message, Throwable e)
      Constructor with error and wrapped exception
      Parameters:
      message - Detailed error
      e - Wrapped LDAP exception
    • PersistenceException

      public PersistenceException(String message, Throwable e, int errorCode)
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Get the LDAP error code
      Returns:
      The LDAP error code
    • setErrorCode

      public void setErrorCode(int code)
      Set the LDAP error code
      Parameters:
      code - Error code
    • toString

      public String toString()
      Get the message for display
      Overrides:
      toString in class Throwable
      Returns:
      Message for display