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 ofLdapException
which is used to report issues during the integrity check of the schema by the SchemaManager.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
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 LdapSchemaExceptionCodes
getCode()
Gets the code of the exception.SchemaObject
getOtherObject()
Gets the 'other' schema object.String
getRelatedId()
Gets the related ID (name or OID) of the exception.SchemaObject
getSourceObject()
Gets the 'source' schema object.void
setCode(LdapSchemaExceptionCodes code)
Sets the code of the exception.void
setOtherObject(SchemaObject other)
Sets the 'other' schema object.void
setRelatedId(String relatedId)
Sets the related ID (name or OID) of the exception.void
setSourceObject(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
-
-
-
-
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)
-
-