Class LDAPConnectionException

  • All Implemented Interfaces:
    Serializable

    public class LDAPConnectionException
    extends Exception
    Represents an exception that can be thrown when the LDAP client cannot connect with the LDAP server.
    See Also:
    Serialized Form
    • Constructor Detail

      • LDAPConnectionException

        public LDAPConnectionException​(int resultCode,
                                       String errorMessage,
                                       Throwable cause)
        Constructs a new LDAPConnectionException with the specified result code, error message and cause.
      • LDAPConnectionException

        public LDAPConnectionException​(String errorMessage,
                                       Throwable cause)
        Constructs a new LDAPConnectionException with the specified error message and cause.
      • LDAPConnectionException

        public LDAPConnectionException​(String errorMessage)
        Constructs a new LDAPConnectionException with the specified error message.
    • Method Detail

      • getResultCode

        public int getResultCode()
        Returns the result code from this LDAPConnectionException.
        Returns:
        the result code or -1 if value not set.
      • hasResultCode

        public boolean hasResultCode()
        Reports whether the result code value was set for this LDAPConnectionException.
        Returns:
        true if the result code value was set or false otherwise.