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

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

public class LdapAuthenticationNotSupportedException
extends javax.naming.AuthenticationNotSupportedException
implements LdapException

A subclass of the AuthenticationNotSupportedException carrying along an unequivocal ResultCodeEnum value.

Version:
$Rev: 379008 $
Author:
Apache Directory Project
See Also:
LDAP ResultCode to JNDI Exception Mappings, Serialized Form

Field Summary
 
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
 
Constructor Summary
LdapAuthenticationNotSupportedException(ResultCodeEnum resultCode)
          Creates an LdapException with the resultCode.
LdapAuthenticationNotSupportedException(java.lang.String explanation, ResultCodeEnum resultCode)
          Sets the resultCode associated with this LdapException.
 
Method Summary
 ResultCodeEnum getResultCode()
          Gets the LDAP result code that would be associated with this exception.
 
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

LdapAuthenticationNotSupportedException

public LdapAuthenticationNotSupportedException(ResultCodeEnum resultCode)
Creates an LdapException with the resultCode.

Parameters:
resultCode - the resultCode enumeration
Throws:
java.lang.IllegalArgumentException - if the resultCode is not one of the codes corresponding to an AuthenticationNotSupportedException
See Also:
AuthenticationNotSupportedException.AuthenticationNotSupportedException()

LdapAuthenticationNotSupportedException

public LdapAuthenticationNotSupportedException(java.lang.String explanation,
                                               ResultCodeEnum resultCode)
Sets the resultCode associated with this LdapException.

Parameters:
resultCode - the resultCode enumeration
Throws:
java.lang.IllegalArgumentException - if the resultCode is not one of the codes corresponding to an AuthenticationNotSupportedException
See Also:
AuthenticationNotSupportedException.AuthenticationNotSupportedException(String)
Method Detail

getResultCode

public ResultCodeEnum getResultCode()
Description copied from interface: LdapException
Gets the LDAP result code that would be associated with this exception.

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.