Class LDAPException

    • Constructor Summary

      Constructors 
      Constructor Description
      LDAPException()
      Creates a new LDAP exception with no information.
      LDAPException​(LDAPException ldapException)
      Creates a new LDAP exception from the provided LDAPException object.
      LDAPException​(java.lang.String message)
      Creates a new LDAP exception with the provided information.
      LDAPException​(java.lang.String message, int resultCode)
      Creates a new LDAP exception with the provided information.
      LDAPException​(java.lang.String message, int resultCode, java.lang.String serverErrorMessage)
      Creates a new LDAP exception with the provided information.
      LDAPException​(java.lang.String message, int resultCode, java.lang.String serverErrorMessage, java.lang.String matchedDN)
      Creates a new LDAP exception with the provided information.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String errorCodeToString()
      Retrieves a string representation of the result code for this LDAP exception.
      static java.lang.String errorCodeToString​(int code)
      Retrieves a string representation of the result code for this LDAP exception.
      static java.lang.String errorCodeToString​(int code, java.util.Locale locale)
      Retrieves a string representation of the result code for this LDAP exception.
      java.lang.String errorCodeToString​(java.util.Locale l)
      Retrieves a string representation of the result code for this LDAP exception.
      java.lang.String getLDAPErrorMessage()
      Retrieves the error message received from the server, if available.
      int getLDAPResultCode()
      Retrieves the result code for this LDAP exception.
      java.lang.String getMatchedDN()
      Retrieves the matched DN for this LDAP exception, if available.
      LDAPException toLDAPException()
      Retrieves an LDAPException object that is the equivalent of this LDAP exception.
      java.lang.String toString()
      Retrieves a string representation of this LDAP exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait