org.apache.directory.shared.ldap.exception
Class LdapServiceUnavailableException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.naming.NamingException
              extended byjavax.naming.ServiceUnavailableException
                  extended byorg.apache.directory.shared.ldap.exception.LdapServiceUnavailableException
All Implemented Interfaces:
LdapException, java.io.Serializable

public class LdapServiceUnavailableException
extends javax.naming.ServiceUnavailableException
implements LdapException

LDAP specific ServiceUnavailableException that preserves resultCode resolution.

Version:
$Rev: 379008 $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
 
Constructor Summary
LdapServiceUnavailableException(ResultCodeEnum resultCode)
          Creates an LDAP specific ServiceUnavailableException that preserves resultCode resolution.
LdapServiceUnavailableException(java.lang.String explanation, ResultCodeEnum resultCode)
          Creates an LDAP specific ServiceUnavailableException that preserves resultCode resolution.
 
Method Summary
 ResultCodeEnum getResultCode()
          Returns one of the resultCodes within the set ResultCodeEnum.SERVICEUNAVAILABLE_CODES.
 
Methods inherited from class javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdapServiceUnavailableException

public LdapServiceUnavailableException(ResultCodeEnum resultCode)
Creates an LDAP specific ServiceUnavailableException that preserves resultCode resolution.

Parameters:
resultCode - the LDAP result code to be checked
Throws:
java.lang.IllegalArgumentException - if the result code is not within the set ResultCodeEnum.SERVICEUNAVAILABLE_CODES.

LdapServiceUnavailableException

public LdapServiceUnavailableException(java.lang.String explanation,
                                       ResultCodeEnum resultCode)
Creates an LDAP specific ServiceUnavailableException that preserves resultCode resolution.

Parameters:
explanation - the reason for the exception to pass to super
resultCode - the LDAP result code to be checked
Throws:
java.lang.IllegalArgumentException - if the result code is not within the set ResultCodeEnum.SERVICEUNAVAILABLE_CODES.
Method Detail

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 © 2003-2006 . All Rights Reserved.