Class LDAPException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.opencloud.slee.resources.ldap.objects.LDAPException
-
- All Implemented Interfaces:
Serializable
public class LDAPException extends Exception
Represents an exception that can be thrown when general errors occur, or if a problem occurs while performing an LDAP operation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LDAPException(int resultCode, String errorMessage)
Constructs a new LDAPException with the specified result code and error message.LDAPException(int resultCode, String errorMessage, String matchedDN, Throwable cause)
Constructs a new LDAPException with the specified result code, error message, matched DN and cause.LDAPException(int resultCode, String errorMessage, Throwable cause)
Constructs a new LDAPException with the specified result code, error message and cause.LDAPException(String errorMessage)
Constructs a new LDAPException with the specified error message.LDAPException(String errorMessage, Throwable cause)
Constructs a new LDAPException with the specified error message and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMatchedDN()
Returns the matched DN from this LDAPException.int
getResultCode()
Returns the result code from this LDAPException.boolean
hasResultCode()
Reports whether the result code value was set for this LDAPException.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
LDAPException
public LDAPException(int resultCode, String errorMessage, String matchedDN, Throwable cause)
Constructs a new LDAPException with the specified result code, error message, matched DN and cause.
-
LDAPException
public LDAPException(int resultCode, String errorMessage, Throwable cause)
Constructs a new LDAPException with the specified result code, error message and cause.
-
LDAPException
public LDAPException(int resultCode, String errorMessage)
Constructs a new LDAPException with the specified result code and error message.
-
LDAPException
public LDAPException(String errorMessage, Throwable cause)
Constructs a new LDAPException with the specified error message and cause.
-
LDAPException
public LDAPException(String errorMessage)
Constructs a new LDAPException with the specified error message.
-
-
Method Detail
-
getResultCode
public int getResultCode()
Returns the result code from this LDAPException.- Returns:
- the result code or -1 if value not set.
-
getMatchedDN
public String getMatchedDN()
Returns the matched DN from this LDAPException.- Returns:
- the matched DN.
-
hasResultCode
public boolean hasResultCode()
Reports whether the result code value was set for this LDAPException.- Returns:
- true if the result code value was set or false otherwise.
-
-