com.ibm.portal.state.exceptions
Class CannotCloneDocumentModelException

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
                  extended by com.ibm.portal.state.exceptions.CannotCloneDocumentModelException
All Implemented Interfaces:
Localized, Constants, java.io.Serializable
Direct Known Subclasses:
InvalidConstantException

public abstract class CannotCloneDocumentModelException
extends DocumentModelException
implements Constants

Exception representing the error case that a given DocumentModel cannot be cloned (e.g. during URL generation).

Since:
5.1
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ibm.portal.state.Constants
Constants.Clone, Constants.DeepCopyConstant, Constants.EmptyCopyConstant, Constants.Merge, Constants.OverwriteConstant, Constants.SmartCopyConstant
 
Field Summary
protected  Constants.Clone type
          Type of the clone operation that failed
 
Fields inherited from class com.ibm.portal.state.exceptions.DocumentModelException
model
 
Fields inherited from interface com.ibm.portal.state.Constants
DEEP_COPY, EMPTY_COPY, OVERWRITE, SMART_COPY
 
Constructor Summary
CannotCloneDocumentModelException(Constants.Clone aType)
          Initializes the exception with the model that could not be cloned and the exception that describes the reason for this failure.
CannotCloneDocumentModelException(DocumentModel aModel, Constants.Clone aType, java.lang.Exception aReason)
          Initializes the exception with the model that could not be cloned and the exception that describes the reason for this failure.
 
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

type

protected final Constants.Clone type
Type of the clone operation that failed

Constructor Detail

CannotCloneDocumentModelException

public CannotCloneDocumentModelException(Constants.Clone aType)
Initializes the exception with the model that could not be cloned and the exception that describes the reason for this failure.

Parameters:
aType - Type of the clone operation that failed (@see Constants)

CannotCloneDocumentModelException

public CannotCloneDocumentModelException(DocumentModel aModel,
                                         Constants.Clone aType,
                                         java.lang.Exception aReason)
Initializes the exception with the model that could not be cloned and the exception that describes the reason for this failure.

Parameters:
aModel - Document model that should have been cloned
aType - Type of the clone operation that failed (@see Constants)
aReason - Reason for the failure of the clone operation