Class LDAPException

All Implemented Interfaces:
Serializable

public abstract class LDAPException extends RuntimeException

Thrown by an LDAPClient to indicate an error wile accessing an LDAP server.

Since:
1.5
Author:
Jeremy Kuhn
See Also:
  • Constructor Details

    • LDAPException

      public LDAPException()

      Creates an LDAP exception.

    • LDAPException

      public LDAPException(String message)

      Creates an LDAP exception.

      Parameters:
      message - a message
    • LDAPException

      public LDAPException(Throwable cause)

      Creates an LDAP exception.

      Parameters:
      cause - the cause of the error
    • LDAPException

      public LDAPException(String message, Throwable cause)

      Creates an LDAP exception.

      Parameters:
      message - a message
      cause - the cause of the error
    • LDAPException

      public LDAPException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)

      Creates an LDAP exception.

      Parameters:
      message - a message
      cause - the cause of the error
      enableSuppression - whether or not suppression is enabled or disabled
      writableStackTrace - whether or not the stack trace should be writable
  • Method Details

    • getErrorCode

      public abstract Integer getErrorCode()

      Returns the code corresponding to the LDAP error.

      Returns:
      the error code
    • getErrorDescription

      public abstract String getErrorDescription()

      Returns the description of the LDAP error.

      This shall corresponds to the actual error message returned by the LDAP server.

      Returns:
      the error description