java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.inverno.mod.ldap.LDAPException
- All Implemented Interfaces:
Serializable
Thrown by an LDAPClient
to indicate an error wile accessing an LDAP server.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates an LDAP exception.LDAPException
(String message) Creates an LDAP exception.LDAPException
(String message, Throwable cause) Creates an LDAP exception.LDAPException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates an LDAP exception.LDAPException
(Throwable cause) Creates an LDAP exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LDAPException
public LDAPException()Creates an LDAP exception.
-
LDAPException
Creates an LDAP exception.
- Parameters:
message
- a message
-
LDAPException
Creates an LDAP exception.
- Parameters:
cause
- the cause of the error
-
LDAPException
Creates an LDAP exception.
- Parameters:
message
- a messagecause
- the cause of the error
-
LDAPException
public LDAPException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates an LDAP exception.
- Parameters:
message
- a messagecause
- the cause of the errorenableSuppression
- whether or not suppression is enabled or disabledwritableStackTrace
- whether or not the stack trace should be writable
-
-
Method Details
-
getErrorCode
Returns the code corresponding to the LDAP error.
- Returns:
- the error code
-
getErrorDescription
Returns the description of the LDAP error.
This shall corresponds to the actual error message returned by the LDAP server.
- Returns:
- the error description
-