public class LDAPConnectionException extends OpenDsException
Constructor and Description |
---|
LDAPConnectionException(LocalizableMessage message)
Creates a new exception with the provided message.
|
LDAPConnectionException(LocalizableMessage message,
int resultCode,
LocalizableMessage errorMessage)
Creates a new exception with the provided message.
|
LDAPConnectionException(LocalizableMessage message,
int resultCode,
LocalizableMessage errorMessage,
org.forgerock.opendj.ldap.Dn matchedDN,
Throwable cause)
Creates a new exception with the provided message and
underlying cause.
|
LDAPConnectionException(LocalizableMessage message,
int resultCode,
LocalizableMessage errorMessage,
Throwable cause)
Creates a new exception with the provided message and
underlying cause.
|
LDAPConnectionException(LocalizableMessage message,
Throwable cause)
Creates a new exception with the provided message and
underlying cause.
|
Modifier and Type | Method and Description |
---|---|
LocalizableMessage |
getErrorMessage()
Retrieves the server-provided error message associated with this exception.
|
org.forgerock.opendj.ldap.Dn |
getMatchedDN()
Return the matched DN associated with this exception.
|
int |
getResultCode()
Return the result code associated with this exception.
|
getMessageObject
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public LDAPConnectionException(LocalizableMessage message)
message
- The message to use for this exception.public LDAPConnectionException(LocalizableMessage message, int resultCode, LocalizableMessage errorMessage)
message
- The message to use for this exception.resultCode
- The result code for this exception.errorMessage
- The server-provided error message for this exception.public LDAPConnectionException(LocalizableMessage message, Throwable cause)
message
- The message to use for this exception.cause
- The underlying cause that triggered this
exception.public LDAPConnectionException(LocalizableMessage message, int resultCode, LocalizableMessage errorMessage, Throwable cause)
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.public LDAPConnectionException(LocalizableMessage message, int resultCode, LocalizableMessage errorMessage, org.forgerock.opendj.ldap.Dn matchedDN, Throwable cause)
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.public int getResultCode()
public LocalizableMessage getErrorMessage()
public org.forgerock.opendj.ldap.Dn getMatchedDN()
null
if
none was provided.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.