|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.naming.NamingException
javax.naming.directory.SchemaViolationException
org.apache.directory.shared.ldap.exception.LdapSchemaViolationException
public class LdapSchemaViolationException
Makes a SchemaViolationException unambiguous with respect to the result code it corresponds to by associating an LDAP specific result code with it.
| Field Summary |
|---|
| Fields inherited from class javax.naming.NamingException |
|---|
remainingName, resolvedName, resolvedObj, rootException |
| Constructor Summary | |
|---|---|
LdapSchemaViolationException(ResultCodeEnum resultCode)
Creates an Ldap NamingException using a result code. |
|
LdapSchemaViolationException(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 |
|---|
public LdapSchemaViolationException(ResultCodeEnum resultCode)
resultCode - the LDAP resultCode this exception is associated with
java.lang.IllegalArgumentException - if the resultCode argument is not
ResultCodeEnum.OBJECTCLASSVIOLATION,
ResultCodeEnum.NOTALLOWEDONRDN, or
ResultCodeEnum.OBJECTCLASSMODSPROHIBITED
public LdapSchemaViolationException(java.lang.String explanation,
ResultCodeEnum resultCode)
explanation - an explanation for the failureresultCode - the LDAP resultCode this exception is associated with| Method Detail |
|---|
public ResultCodeEnum getResultCode()
getResultCode in interface LdapException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||