public class InvalidRequestException extends InputException
This class represents the exception thrown when an invalid request is being attempted.
In invalid request falls in the following categories:
Constructor and Description |
---|
InvalidRequestException()
Default Constructor.
|
InvalidRequestException(java.lang.String resourceBundleName,
java.lang.String messageKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText)
Constructor with localized message.
|
InvalidRequestException(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.
|
InvalidRequestException(java.lang.Throwable exception)
Constructor with a chained exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dumpException()
This method dumps this exception to a String.
|
java.lang.String |
getFailedRequest()
This method returns the request that could not be executed because the target object was canceled.
|
java.lang.String |
getObjectId()
This method returns the unique identifier of the canceled object.
|
java.lang.String |
getObjectType()
This method returns the type of the canceled object.
|
void |
setFailedRequest(java.lang.String localFailedRequest)
This method sets the request that could not be executed because the target object was canceled.
|
void |
setObjectId(java.lang.String localObjectId)
This method sets the unique identifier of the canceled object.
|
void |
setObjectType(java.lang.String localObjectType)
This method sets the type of the canceled object.
|
addProperties, addProperties, addProperty, getClassSource, getDefaultMessage, getFormatArguments, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageKey, getMethodSource, getPreviousException, getProperties, getResourceBundleName, setClassSource, setDefaultMessage, setFormatArguments, setMessageKey, setMethodSource, setPreviousException, setProperties, setResourceBundleName
public InvalidRequestException()
Default Constructor.
public InvalidRequestException(java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.Object[] formatArguments, java.lang.String defaultText)
Constructor with 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 InvalidRequestException(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 InvalidRequestException(java.lang.Throwable exception)
Constructor with a chained exception.
exception
- the exception to be chainedpublic void setFailedRequest(java.lang.String localFailedRequest)
This method sets the request that could not be executed because the target object was canceled.
failedRequest
- the request that failed because the target object was canceledpublic java.lang.String getFailedRequest()
This method returns the request that could not be executed because the target object was canceled.
public void setObjectId(java.lang.String localObjectId)
This method sets the unique identifier of the canceled object.
objectId
- the unique identifier of the canceled objectpublic java.lang.String getObjectId()
This method returns the unique identifier of the canceled object.
public void setObjectType(java.lang.String localObjectType)
This method sets the type of the canceled object.
objectType
- the type of the canceled objectpublic java.lang.String getObjectType()
This method returns the type of the canceled object.
public java.lang.String dumpException()
dumpException
in class BaseException