com.ibm.portal.state.exceptions
Class DocumentModelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.portal.state.exceptions.StateException
              extended by com.ibm.portal.state.exceptions.DocumentModelException
All Implemented Interfaces:
Localized, java.io.Serializable
Direct Known Subclasses:
CannotCloneDocumentModelException, CannotCreateDocumentException

public abstract class DocumentModelException
extends StateException

Base exception for document model-related exceptions. Should be sub-classed by specific document model exceptions.

Since:
5.1
See Also:
Serialized Form

Field Summary
protected  DocumentModel model
          Reference to the model that caused the exception
 
Constructor Summary
DocumentModelException(DocumentModel aModel)
          Initialized the exception with a reference to the model that caused it
DocumentModelException(DocumentModel aModel, java.lang.Exception aReason)
          Initialized the exception with a reference to the model that caused it
 
Method Summary
 
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
 
Methods inherited from interface com.ibm.portal.Localized
getDescription, getLocales, getTitle
 

Field Detail

model

protected final DocumentModel model
Reference to the model that caused the exception

Constructor Detail

DocumentModelException

public DocumentModelException(DocumentModel aModel)
Initialized the exception with a reference to the model that caused it

Parameters:
aModel - Model that caused the exception (must not be null)

DocumentModelException

public DocumentModelException(DocumentModel aModel,
                              java.lang.Exception aReason)
Initialized the exception with a reference to the model that caused it

Parameters:
aModel - Model that caused the exception (must not be null)
aReason - Exception that provides details on the reason of failure (must not be null)