|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.opends.server.types.OpenDsException
org.opends.server.types.IdentifiedException
org.opends.server.types.LDAPException
@PublicAPI(stability=UNCOMMITTED,
mayInstantiate=true,
mayExtend=false,
mayInvoke=true)
public final class LDAPExceptionThis class defines an exception that may be thrown if a problem occurs while interacting with an LDAP protocol element.
| Constructor Summary | |
|---|---|
LDAPException(int resultCode,
Message message)
Creates a new LDAP exception with the provided message. |
|
LDAPException(int resultCode,
Message errorMessage,
Message message)
Creates a new LDAP exception with the provided message. |
|
LDAPException(int resultCode,
Message errorMessage,
Message message,
DN matchedDN,
java.lang.Throwable cause)
Creates a new LDAP exception with the provided message and root cause. |
|
LDAPException(int resultCode,
Message errorMessage,
Message message,
java.lang.Throwable cause)
Creates a new LDAP exception with the provided message and root cause. |
|
LDAPException(int resultCode,
Message message,
java.lang.Throwable cause)
Creates a new LDAP exception with the provided message and root cause. |
|
| Method Summary | |
|---|---|
Message |
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. |
| Methods inherited from class org.opends.server.types.OpenDsException |
|---|
getMessageObject |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LDAPException(int resultCode,
Message message)
resultCode - The LDAP result code associated with this
exception.message - The message that explains the problem that
occurred.
public LDAPException(int resultCode,
Message errorMessage,
Message 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,
Message message,
java.lang.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,
Message errorMessage,
Message message,
java.lang.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,
Message errorMessage,
Message message,
DN matchedDN,
java.lang.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.| Method Detail |
|---|
public int getResultCode()
public Message getErrorMessage()
null if none was given.public DN getMatchedDN()
null if
there is none.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||