public class ObjectDeletionException extends J2EEException
This class represents the exception thrown by the ObjectModelFacade when a request to delete an object fails for reasons other than Object Not Found.
ObjectCannotBeFoundException,
Serialized Form| Constructor and Description |
|---|
ObjectDeletionException()
Default Constructor.
|
ObjectDeletionException(java.lang.String resourceBundleName,
java.lang.String messageKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText)
Constructor with a localized message.
|
ObjectDeletionException(java.lang.String resourceBundleName,
java.lang.String messageKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText,
java.lang.Throwable exception)
Constructor with a localized message and a chained exception.
|
ObjectDeletionException(java.lang.Throwable exception)
Constructor with a chained exception.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
dumpException()
This method dumps this exception.
|
java.lang.String |
getObjectId()
This method returns the id of the object.
|
java.lang.String |
getObjectType()
This method returns the type name of the object.
|
void |
setObjectId(java.lang.Object localObjectId)
This method sets the id of the object.
|
void |
setObjectType(java.lang.String localObjectType)
This method sets the type name of the object.
|
addProperties, addProperties, addProperty, getClassSource, getDefaultMessage, getFormatArguments, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageKey, getMethodSource, getPreviousException, getProperties, getResourceBundleName, setClassSource, setDefaultMessage, setFormatArguments, setMessageKey, setMethodSource, setPreviousException, setProperties, setResourceBundleNamepublic ObjectDeletionException()
Default Constructor.
public ObjectDeletionException(java.lang.String resourceBundleName,
java.lang.String messageKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText)
Constructor with a localized message.
resourceBundleName - the name of the resource bundle to be used to generate a localized
exception messagemessageKey - the key to identify the resource to generate a localized exceptionformatArguments - an array of arguments to build the localized messagedefaultText - the message that is shown if the localized message cannot be generatedpublic ObjectDeletionException(java.lang.String resourceBundleName,
java.lang.String messageKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText,
java.lang.Throwable exception)
Constructor with a localized message and a chained exception.
resourceBundleName - the name of the resource bundle to be used to generate a localized
exception messagemessageKey - the key to identify the resource to generate a localized exceptionformatArguments - an array of arguments to build the localized messagedefaultText - the message that is shown if the localized message cannot be generatedexception - the exception to be chainedpublic ObjectDeletionException(java.lang.Throwable exception)
Constructor with a chained exception.
exception - the exception to be chainedpublic void setObjectId(java.lang.Object localObjectId)
This method sets the id of the object.
localObjectId - the id of the objectpublic java.lang.String getObjectId()
This method returns the id of the object.
public void setObjectType(java.lang.String localObjectType)
This method sets the type name of the object.
localObjectType - The type name of the objectpublic java.lang.String getObjectType()
This method returns the type name of the object.
public java.lang.String dumpException()
dumpException in class BaseException