atg.svc.repository.service.exception
Class ObjectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by atg.core.exception.ContainerException
              extended by atg.svc.repository.service.exception.ObjectException
All Implemented Interfaces:
atg.core.exception.ContainableException, java.io.Serializable
Direct Known Subclasses:
MissingRequiredPropertyException, ObjectNotFoundException, PersistenceException

public class ObjectException
extends atg.core.exception.ContainerException

Exception for exception related to objects where the id and item-descriptor should be recorded.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
ObjectException(java.lang.String msg)
           
ObjectException(java.lang.String msg, java.lang.Throwable cause)
           
ObjectException(java.lang.String msg, java.lang.Throwable cause, java.lang.String pId, java.lang.String pItemDescriptor)
           
ObjectException(java.lang.Throwable cause)
           
 
Method Summary
 java.lang.String getId()
          Gets the id of the object that could not be found.
 java.lang.String getItemDescriptor()
          Gets the name of the item-descriptor of the object that could not be found.
 java.lang.String getMessage()
          Returns the detail message string of this throwable.
 void setId(java.lang.String pId)
          Sets the id of the object that could not be found.
 void setItemDescriptor(java.lang.String pItemDescriptor)
          Sets the name of the item-descriptor of the object that could not be found.
 
Methods inherited from class atg.core.exception.ContainerException
getSourceException, printStackTrace, printStackTrace, printStackTrace, printStackTrace, setSourceException, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Constructor Detail

ObjectException

public ObjectException(java.lang.String msg,
                       java.lang.Throwable cause,
                       java.lang.String pId,
                       java.lang.String pItemDescriptor)

ObjectException

public ObjectException(java.lang.String msg,
                       java.lang.Throwable cause)

ObjectException

public ObjectException(java.lang.Throwable cause)

ObjectException

public ObjectException(java.lang.String msg)
Method Detail

getId

public java.lang.String getId()
Gets the id of the object that could not be found.

Returns:
The id of the object that could not be found.

setId

public void setId(java.lang.String pId)
Sets the id of the object that could not be found.

Parameters:
pId - The id of the object that could not be found.

getItemDescriptor

public java.lang.String getItemDescriptor()
Gets the name of the item-descriptor of the object that could not be found.

Returns:
The name of the item-descriptor of the object that could not be found.

setItemDescriptor

public void setItemDescriptor(java.lang.String pItemDescriptor)
Sets the name of the item-descriptor of the object that could not be found.

Parameters:
pItemDescriptor - The name of the item-descriptor of the object that could not be found.

getMessage

public java.lang.String getMessage()
Returns the detail message string of this throwable.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the detail message string of this Throwable instance (which may be null).