org.apache.directory.shared.ldap.exception
Class LdapInvalidAttributeValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.naming.NamingException
javax.naming.directory.InvalidAttributeValueException
org.apache.directory.shared.ldap.exception.LdapInvalidAttributeValueException
- All Implemented Interfaces:
- Serializable, LdapException
public class LdapInvalidAttributeValueException
- extends 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: 434411 $
- Author:
- Apache Directory Project
- See Also:
-
LDAP ResultCode to JNDI Exception Mappings,
Serialized Form
Methods inherited from class javax.naming.NamingException |
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString |
LdapInvalidAttributeValueException
public LdapInvalidAttributeValueException(ResultCodeEnum resultCode)
- Creates an Ldap InvalidAttributeValueException using a result code.
- Parameters:
resultCode
- the LDAP resultCode this exception is associated with
- Throws:
IllegalArgumentException
- if the resultCode argument is not
ResultCodeEnum.CONSTRAINTVIOLATION, or
ResultCodeEnum.INVALIDATTRIBUTESYNTAX
LdapInvalidAttributeValueException
public LdapInvalidAttributeValueException(String explanation,
ResultCodeEnum resultCode)
- Creates an Ldap InvalidAttributeValueException using a result code and a
specific message.
- Parameters:
explanation
- an explanation for the failureresultCode
- the LDAP resultCode this exception is associated with
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 © 2004-2012. All Rights Reserved.