org.apache.directory.shared.ldap.exception
Class LdapSchemaViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.naming.NamingException
javax.naming.directory.SchemaViolationException
org.apache.directory.shared.ldap.exception.LdapSchemaViolationException
- All Implemented Interfaces:
- Serializable, LdapException
public class LdapSchemaViolationException
- extends SchemaViolationException
- implements LdapException
Makes a SchemaViolationException 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 |
LdapSchemaViolationException
public LdapSchemaViolationException(ResultCodeEnum resultCode)
- Creates an Ldap NamingException using a result code.
- Parameters:
resultCode
- the LDAP resultCode this exception is associated with
- Throws:
IllegalArgumentException
- if the resultCode argument is not
ResultCodeEnum.OBJECTCLASSVIOLATION,
ResultCodeEnum.NOTALLOWEDONRDN, or
ResultCodeEnum.OBJECTCLASSMODSPROHIBITED
LdapSchemaViolationException
public LdapSchemaViolationException(String explanation,
ResultCodeEnum resultCode)
- Creates an Eve NamingException.
- 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.