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
public class LdapSchemaException extends LdapException
A subclass ofLdapExceptionwhich is used to report issues during the integrity check of the schema by the SchemaManager.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static longserialVersionUIDThe serial version UUID
-
Constructor Summary
Constructors Constructor Description LdapSchemaException()Creates a new instance of LdapSchemaException.LdapSchemaException(String explanation)Creates a new instance of LdapSchemaException.LdapSchemaException(LdapSchemaExceptionCodes code)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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LdapSchemaExceptionCodesgetCode()Gets the code of the exception.SchemaObjectgetOtherObject()Gets the 'other' schema object.StringgetRelatedId()Gets the related ID (name or OID) of the exception.SchemaObjectgetSourceObject()Gets the 'source' schema object.voidsetCode(LdapSchemaExceptionCodes code)Sets 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 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
The serial version UUID- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LdapSchemaException
public LdapSchemaException()
Creates a new instance of LdapSchemaException.
-
LdapSchemaException
public LdapSchemaException(LdapSchemaExceptionCodes code)
Creates a new instance of LdapSchemaException.- Parameters:
code- The code of the exception
-
LdapSchemaException
public LdapSchemaException(String explanation)
Creates a new instance of LdapSchemaException.- Parameters:
explanation- The message associated with the exception
-
LdapSchemaException
public LdapSchemaException(LdapSchemaExceptionCodes code, String explanation)
Creates a new instance of LdapSchemaException.- Parameters:
code- The code of the exceptionexplanation- The message associated with the exception
-
LdapSchemaException
public LdapSchemaException(LdapSchemaExceptionCodes code, Throwable cause)
- Parameters:
code- The code of the exceptioncause- The root cause for this exception
-
LdapSchemaException
public LdapSchemaException(LdapSchemaExceptionCodes code, String explanation, Throwable cause)
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 Detail
-
getCode
public LdapSchemaExceptionCodes getCode()
Gets the code of the exception.- Returns:
- the code of the exception
-
setCode
public void setCode(LdapSchemaExceptionCodes code)
Sets the code of the exception.- Parameters:
code- the code of the exception
-
getSourceObject
public SchemaObject getSourceObject()
Gets the 'source' schema object.- Returns:
- the 'source' schema object
-
setSourceObject
public void setSourceObject(SchemaObject source)
Sets the 'source' schema object.- Parameters:
source- the 'source' schema object
-
getOtherObject
public SchemaObject getOtherObject()
Gets the 'other' schema object.- Returns:
- the 'other' schema object
-
setOtherObject
public void setOtherObject(SchemaObject other)
Sets the 'other' schema object.- Parameters:
other- the 'other' schema object
-
getRelatedId
public String getRelatedId()
Gets the related ID (name or OID) of the exception.- Returns:
- the related ID (name or OID)
-
setRelatedId
public void setRelatedId(String relatedId)
Sets the related ID (name or OID) of the exception.- Parameters:
relatedId- the related ID (name or OID)
-
-