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

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

public class LdapInvalidAttributeValueException
extends javax.naming.directory.InvalidAttributeValueException
implements LdapException

Makes a InvalidAttributeValueException unambiguous with respect to the result code it corresponds to by associating an LDAP specific result code with it.

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
LdapInvalidAttributeValueException(ResultCodeEnum resultCode)
          Creates an Ldap InvalidAttributeValueException using a result code.
LdapInvalidAttributeValueException(java.lang.String explanation, ResultCodeEnum resultCode)
          Creates an Ldap InvalidAttributeValueException using a result code and a specific message.
 
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

LdapInvalidAttributeValueException

public LdapInvalidAttributeValueException(ResultCodeEnum resultCode)
Creates an Ldap InvalidAttributeValueException using a result code.

Parameters:
resultCode - the LDAP resultCode this exception is associated with
Throws:
java.lang.IllegalArgumentException - if the resultCode argument is not ResultCodeEnum.CONSTRAINTVIOLATION, or ResultCodeEnum.INVALIDATTRIBUTESYNTAX

LdapInvalidAttributeValueException

public LdapInvalidAttributeValueException(java.lang.String explanation,
                                          ResultCodeEnum resultCode)
Creates an Ldap InvalidAttributeValueException using a result code and a specific message.

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