org.apache.directory.api.ldap.model.exception
Class LdapSchemaException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.directory.api.ldap.model.exception.LdapException
              extended by org.apache.directory.api.ldap.model.exception.LdapSchemaException
All Implemented Interfaces:
Serializable

public class LdapSchemaException
extends LdapException

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:
Serialized Form

Constructor Summary
LdapSchemaException()
          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)
           
LdapSchemaException(String explanation)
          Creates a new instance of LdapSchemaException.
 
Method Summary
 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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 exception
explanation - The message associated with the exception

LdapSchemaException

public LdapSchemaException(LdapSchemaExceptionCodes code,
                           Throwable cause)
Parameters:
code - The code of the exception
cause - 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 exception
explanation - The message associated with the exception
cause - 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)


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.