Class LDAPException

    • Constructor Detail

      • LDAPException

        public LDAPException​(int resultCode,
                             org.forgerock.i18n.LocalizableMessage message)
        Creates a new LDAP exception with the provided message.
        Parameters:
        resultCode - The LDAP result code associated with this exception.
        message - The message that explains the problem that occurred.
      • LDAPException

        public LDAPException​(int resultCode,
                             org.forgerock.i18n.LocalizableMessage errorMessage,
                             org.forgerock.i18n.LocalizableMessage message)
        Creates a new LDAP exception with the provided message.
        Parameters:
        resultCode - The LDAP result code associated with this exception.
        errorMessage - The server-provided error message.
        message - The message that explains the problem that occurred.
      • LDAPException

        public LDAPException​(int resultCode,
                             org.forgerock.i18n.LocalizableMessage message,
                             Throwable cause)
        Creates a new LDAP exception with the provided message and root cause.
        Parameters:
        resultCode - The LDAP result code associated with this exception.
        message - The message that explains the problem that occurred.
        cause - The exception that was caught to trigger this exception.
      • LDAPException

        public LDAPException​(int resultCode,
                             org.forgerock.i18n.LocalizableMessage errorMessage,
                             org.forgerock.i18n.LocalizableMessage message,
                             Throwable cause)
        Creates a new LDAP exception with the provided message and root cause.
        Parameters:
        resultCode - The LDAP result code associated with this exception.
        errorMessage - The server-provided error message.
        message - The message that explains the problem that occurred.
        cause - The exception that was caught to trigger this exception.
      • LDAPException

        public LDAPException​(int resultCode,
                             org.forgerock.i18n.LocalizableMessage errorMessage,
                             org.forgerock.i18n.LocalizableMessage message,
                             DN matchedDN,
                             Throwable cause)
        Creates a new LDAP exception with the provided message and root cause.
        Parameters:
        resultCode - The LDAP result code associated with this exception.
        errorMessage - The server-provided error message.
        message - The message that explains the problem that occurred.
        matchedDN - The matched DN returned by the server.
        cause - The exception that was caught to trigger this exception.
    • Method Detail

      • getResultCode

        public int getResultCode()
        Retrieves the LDAP result code associated with this exception.
        Returns:
        The LDAP result code associated with this exception.
      • getErrorMessage

        public org.forgerock.i18n.LocalizableMessage getErrorMessage()
        Retrieves the server-provided error message for this exception.
        Returns:
        The server-provided error message for this exception, or null if none was given.
      • getMatchedDN

        public DN getMatchedDN()
        Retrieves the matched DN for this exception.
        Returns:
        The matched DN for this exception, or null if there is none.