Class LDAPConnectionException

  • All Implemented Interfaces:
    Serializable, org.forgerock.i18n.LocalizableException

    public class LDAPConnectionException
    extends OpenDsException
    This class defines an exception that may be thrown during the course of creating an LDAP connection to the server.
    See Also:
    Serialized Form
    • Constructor Detail

      • LDAPConnectionException

        public LDAPConnectionException​(org.forgerock.i18n.LocalizableMessage message)
        Creates a new exception with the provided message.
        Parameters:
        message - The message to use for this exception.
      • LDAPConnectionException

        public LDAPConnectionException​(org.forgerock.i18n.LocalizableMessage message,
                                       int resultCode,
                                       org.forgerock.i18n.LocalizableMessage errorMessage)
        Creates a new exception with the provided message.
        Parameters:
        message - The message to use for this exception.
        resultCode - The result code for this exception.
        errorMessage - The server-provided error message for this exception.
      • LDAPConnectionException

        public LDAPConnectionException​(org.forgerock.i18n.LocalizableMessage message,
                                       Throwable cause)
        Creates a new exception with the provided message and underlying cause.
        Parameters:
        message - The message to use for this exception.
        cause - The underlying cause that triggered this exception.
      • LDAPConnectionException

        public LDAPConnectionException​(org.forgerock.i18n.LocalizableMessage message,
                                       int resultCode,
                                       org.forgerock.i18n.LocalizableMessage errorMessage,
                                       Throwable cause)
        Creates a new exception with the provided message and underlying cause.
        Parameters:
        message - The message to use for this exception.
        resultCode - The result code for this exception.
        errorMessage - The server-provided error message for this exception.
        cause - The underlying cause that triggered this exception.
      • LDAPConnectionException

        public LDAPConnectionException​(org.forgerock.i18n.LocalizableMessage message,
                                       int resultCode,
                                       org.forgerock.i18n.LocalizableMessage errorMessage,
                                       DN matchedDN,
                                       Throwable cause)
        Creates a new exception with the provided message and underlying cause.
        Parameters:
        message - The explanation to use for this exception.
        resultCode - The result code for this exception.
        errorMessage - The server-provided error message for this exception.
        matchedDN - The matched DN string for this exception.
        cause - The underlying cause that triggered this exception.
    • Method Detail

      • getResultCode

        public int getResultCode()
        Return the result code associated with this exception.
        Returns:
        The result code associated with this exception, or -1 if none was provided.
      • getErrorMessage

        public org.forgerock.i18n.LocalizableMessage getErrorMessage()
        Retrieves the server-provided error message associated with this exception.
        Returns:
        The server-provided error message associated with this exception.
      • getMatchedDN

        public DN getMatchedDN()
        Return the matched DN associated with this exception.
        Returns:
        The matched DN associated with this exception, or null if none was provided.