Package org.opends.server.types
Class LDAPException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opends.server.types.OpenDsException
-
- org.opends.server.types.IdentifiedException
-
- org.opends.server.types.LDAPException
-
- All Implemented Interfaces:
Serializable,org.forgerock.i18n.LocalizableException
@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class LDAPException extends IdentifiedException
This class defines an exception that may be thrown if a problem occurs while interacting with an LDAP protocol element.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LDAPException(int resultCode, org.forgerock.i18n.LocalizableMessage message)Creates a new LDAP exception with the provided message.LDAPException(int resultCode, org.forgerock.i18n.LocalizableMessage message, Throwable cause)Creates a new LDAP exception with the provided message and root cause.LDAPException(int resultCode, org.forgerock.i18n.LocalizableMessage errorMessage, org.forgerock.i18n.LocalizableMessage message)Creates a new LDAP exception with the provided message.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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.i18n.LocalizableMessagegetErrorMessage()Retrieves the server-provided error message for this exception.DNgetMatchedDN()Retrieves the matched DN for this exception.intgetResultCode()Retrieves the LDAP result code associated with this exception.-
Methods inherited from class org.opends.server.types.OpenDsException
getMessageObject
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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
nullif none was given.
-
getMatchedDN
public DN getMatchedDN()
Retrieves the matched DN for this exception.- Returns:
- The matched DN for this exception, or
nullif there is none.
-
-