@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,
org.forgerock.opendj.ldap.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.
|
org.forgerock.opendj.ldap.Dn |
getMatchedDN()
Retrieves the matched DN for this exception.
|
int |
getResultCode()
Retrieves the LDAP result code associated with this exception.
|
getMessageObject
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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, org.forgerock.opendj.ldap.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 org.forgerock.opendj.ldap.Dn getMatchedDN()
null
if
there is none.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.