org.apache.directory.shared.ldap.exception
Class LdapServiceUnavailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.naming.NamingException
javax.naming.ServiceUnavailableException
org.apache.directory.shared.ldap.exception.LdapServiceUnavailableException
- All Implemented Interfaces:
- Serializable, LdapException
public class LdapServiceUnavailableException
- extends ServiceUnavailableException
- implements LdapException
LDAP specific ServiceUnavailableException that preserves resultCode
resolution.
- Version:
- $Rev: 434411 $
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
Methods inherited from class javax.naming.NamingException |
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString |
LdapServiceUnavailableException
public LdapServiceUnavailableException(ResultCodeEnum resultCode)
- Creates an LDAP specific ServiceUnavailableException that preserves
resultCode resolution.
- Parameters:
resultCode
- the LDAP result code to be checked
- Throws:
IllegalArgumentException
- if the result code is not within the set
ResultCodeEnum.SERVICEUNAVAILABLE_CODES
.
LdapServiceUnavailableException
public LdapServiceUnavailableException(String explanation,
ResultCodeEnum resultCode)
- Creates an LDAP specific ServiceUnavailableException that preserves
resultCode resolution.
- Parameters:
explanation
- the reason for the exception to pass to superresultCode
- the LDAP result code to be checked
- Throws:
IllegalArgumentException
- if the result code is not within the set
ResultCodeEnum.SERVICEUNAVAILABLE_CODES
.
getResultCode
public final ResultCodeEnum getResultCode()
- Returns one of the resultCodes within the set
ResultCodeEnum.SERVICEUNAVAILABLE_CODES
.
- Specified by:
getResultCode
in interface LdapException
- Returns:
- the LDAP result code corresponding to this exception type.
- See Also:
LdapException.getResultCode()
Copyright © 2004-2012. All Rights Reserved.