Class LdapSchemaException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapSchemaException
- All Implemented Interfaces:
Serializable
A subclass of
LdapException which is used to report issues
during the integrity check of the schema by the SchemaManager.- Author:
- Apache Directory Project
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of LdapSchemaException.LdapSchemaException(String explanation) Creates a new instance of LdapSchemaException.Creates a new instance of LdapSchemaException.LdapSchemaException(LdapSchemaExceptionCodes code, String explanation) Creates a new instance of LdapSchemaException.LdapSchemaException(LdapSchemaExceptionCodes code, String explanation, Throwable cause) Creates a new instance of LdapSchemaException.LdapSchemaException(LdapSchemaExceptionCodes code, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Gets the code of the exception.Gets the 'other' schema object.Gets the related ID (name or OID) of the exception.Gets the 'source' schema object.voidSets the code of the exception.voidsetOtherObject(SchemaObject other) Sets the 'other' schema object.voidsetRelatedId(String relatedId) Sets the related ID (name or OID) of the exception.voidsetSourceObject(SchemaObject source) Sets the 'source' schema object.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LdapSchemaException
public LdapSchemaException()Creates a new instance of LdapSchemaException. -
LdapSchemaException
Creates a new instance of LdapSchemaException.- Parameters:
code- The code of the exception
-
LdapSchemaException
Creates a new instance of LdapSchemaException.- Parameters:
explanation- The message associated with the exception
-
LdapSchemaException
Creates a new instance of LdapSchemaException.- Parameters:
code- The code of the exceptionexplanation- The message associated with the exception
-
LdapSchemaException
- Parameters:
code- The code of the exceptioncause- The root cause for this exception
-
LdapSchemaException
Creates a new instance of LdapSchemaException.- Parameters:
code- The code of the exceptionexplanation- The message associated with the exceptioncause- The root cause for this exception
-
-
Method Details
-
getCode
Gets the code of the exception.- Returns:
- the code of the exception
-
setCode
Sets the code of the exception.- Parameters:
code- the code of the exception
-
getSourceObject
Gets the 'source' schema object.- Returns:
- the 'source' schema object
-
setSourceObject
Sets the 'source' schema object.- Parameters:
source- the 'source' schema object
-
getOtherObject
Gets the 'other' schema object.- Returns:
- the 'other' schema object
-
setOtherObject
Sets the 'other' schema object.- Parameters:
other- the 'other' schema object
-
getRelatedId
Gets the related ID (name or OID) of the exception.- Returns:
- the related ID (name or OID)
-
setRelatedId
Sets the related ID (name or OID) of the exception.- Parameters:
relatedId- the related ID (name or OID)
-