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

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.naming.NamingException
              extended by javax.naming.InvalidNameException
                  extended by org.apache.directory.shared.ldap.exception.LdapInvalidNameException
All Implemented Interfaces:
java.io.Serializable, LdapException

public class LdapInvalidNameException
extends javax.naming.InvalidNameException
implements LdapException

A subclass of InvalidNameException designed to hold an unequivocal LDAP result code.

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

Field Summary
 
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
 
Constructor Summary
LdapInvalidNameException(ResultCodeEnum resultCode)
          Creates an Eve NamingException.
LdapInvalidNameException(java.lang.String explanation, ResultCodeEnum resultCode)
          Creates an Eve NamingException.
 
Method Summary
 ResultCodeEnum getResultCode()
          Gets the LDAP resultCode this exception is associated with.
 
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

LdapInvalidNameException

public LdapInvalidNameException(ResultCodeEnum resultCode)
Creates an Eve NamingException.

Parameters:
resultCode - the LDAP resultCode this exception is associated with

LdapInvalidNameException

public LdapInvalidNameException(java.lang.String explanation,
                                ResultCodeEnum resultCode)
Creates an Eve NamingException.

Parameters:
explanation - an explanation for the failure
resultCode - the LDAP resultCode this exception is associated with
Method Detail

getResultCode

public ResultCodeEnum getResultCode()
Gets the LDAP resultCode this exception is associated with.

Specified by:
getResultCode in interface LdapException
Returns:
the LDAP resultCode this exception is associated with


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.