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