@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class LDAPException extends IdentifiedException
| Constructor and Description |
|---|
LDAPException(int resultCode,
LocalizableMessage message)
Creates a new LDAP exception with the provided message.
|
LDAPException(int resultCode,
LocalizableMessage errorMessage,
LocalizableMessage message)
Creates a new LDAP exception with the provided message.
|
LDAPException(int resultCode,
LocalizableMessage errorMessage,
LocalizableMessage message,
DN matchedDN,
Throwable cause)
Creates a new LDAP exception with the provided message and root
cause.
|
LDAPException(int resultCode,
LocalizableMessage errorMessage,
LocalizableMessage message,
Throwable cause)
Creates a new LDAP exception with the provided message and root
cause.
|
LDAPException(int resultCode,
LocalizableMessage message,
Throwable cause)
Creates a new LDAP exception with the provided message and root
cause.
|
| Modifier and Type | Method and Description |
|---|---|
LocalizableMessage |
getErrorMessage()
Retrieves the server-provided error message for this exception.
|
DN |
getMatchedDN()
Retrieves the matched DN for this exception.
|
int |
getResultCode()
Retrieves the LDAP result code associated with this exception.
|
getMessageObjectaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic LDAPException(int resultCode, LocalizableMessage message)
resultCode - The LDAP result code associated with this
exception.message - The message that explains the problem that
occurred.public LDAPException(int resultCode, LocalizableMessage errorMessage, LocalizableMessage message)
resultCode - The LDAP result code associated with this
exception.errorMessage - The server-provided error message.message - The message that explains the problem that
occurred.public LDAPException(int resultCode, LocalizableMessage message, Throwable cause)
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.public LDAPException(int resultCode, LocalizableMessage errorMessage, LocalizableMessage message, Throwable cause)
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.public LDAPException(int resultCode, LocalizableMessage errorMessage, LocalizableMessage message, DN matchedDN, Throwable cause)
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.public int getResultCode()
public LocalizableMessage getErrorMessage()
null if none was given.public DN getMatchedDN()
null if
there is none.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.