public class ObjectAlreadyExistsException extends InputException
This method represents the exception thrown by the ObjectModelFacade. It's thrown when a request to create an object fails because an object already exists with the target primary key.
Constructor and Description |
---|
ObjectAlreadyExistsException()
Default Constructor.
|
ObjectAlreadyExistsException(java.lang.String resourceBundleName,
java.lang.String messageKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText)
Constructor with a localized message.
|
ObjectAlreadyExistsException(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.
|
ObjectAlreadyExistsException(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 object ID.
|
java.lang.String |
getObjectType()
This method returns the object type.
|
void |
setObjectId(java.lang.Object localObjectId)
This method sets the object ID.
|
void |
setObjectType(java.lang.String localObjectType)
This method sets the object type.
|
addProperties, addProperties, addProperty, getClassSource, getDefaultMessage, getFormatArguments, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageKey, getMethodSource, getPreviousException, getProperties, getResourceBundleName, setClassSource, setDefaultMessage, setFormatArguments, setMessageKey, setMethodSource, setPreviousException, setProperties, setResourceBundleName
public ObjectAlreadyExistsException()
Default Constructor.
public ObjectAlreadyExistsException(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 ObjectAlreadyExistsException(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 ObjectAlreadyExistsException(java.lang.Throwable exception)
Constructor with a chained exception.
exception
- the exception to be chainedpublic void setObjectId(java.lang.Object localObjectId)
objectId
- The object ID to setpublic java.lang.String getObjectId()
public void setObjectType(java.lang.String localObjectType)
localObjectType
- The object type to setpublic java.lang.String getObjectType()
public java.lang.String dumpException()
dumpException
in class BaseException