public class InvalidDataException extends InputException
This class represents the exception thrown when invalid parameters are provided in its interface or requested objects are in invalid state.
Invalid parameters can be null
and out of the context range.
Constructor and Description |
---|
InvalidDataException()
Default Constructor.
|
InvalidDataException(java.lang.String resourceBundleName,
java.lang.String messageKey,
java.lang.Object[] formatArguments,
java.lang.String defaultText)
Constructor with a localized message.
|
InvalidDataException(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.
|
InvalidDataException(java.lang.Throwable exception)
Constructor with a chained exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dumpException()
This method converts exception into a human-readable format.
|
java.lang.String |
getInvalidAttributeName()
This method returns the name of the invalid attribute.
|
java.lang.String |
getInvalidAttributeType()
This method returns the type of the invalid attribute.
|
java.lang.String |
getInvalidAttributeValue()
This method returns the value of the invalid attribute.
|
void |
setInvalidAttributeName(java.lang.String localInvalidAttributeName)
This method sets the name of the invalid attribute.
|
void |
setInvalidAttributeType(java.lang.String localInvalidAttributeType)
This method sets the type of the invalid attribute.
|
void |
setInvalidAttributeValue(java.lang.Object localInvalidAttributeValue)
This method sets the value of the invalid attribute.
|
addProperties, addProperties, addProperty, getClassSource, getDefaultMessage, getFormatArguments, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageKey, getMethodSource, getPreviousException, getProperties, getResourceBundleName, setClassSource, setDefaultMessage, setFormatArguments, setMessageKey, setMethodSource, setPreviousException, setProperties, setResourceBundleName
public InvalidDataException()
Default Constructor.
public InvalidDataException(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 InvalidDataException(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 InvalidDataException(java.lang.Throwable exception)
Constructor with a chained exception.
exception
- the exception to be chainedpublic void setInvalidAttributeName(java.lang.String localInvalidAttributeName)
This method sets the name of the invalid attribute.
localInvalidAttributeName
- the name of the invalid attributepublic java.lang.String getInvalidAttributeName()
This method returns the name of the invalid attribute.
public void setInvalidAttributeType(java.lang.String localInvalidAttributeType)
This method sets the type of the invalid attribute.
localInvalidAttributeType
- the type of the invalid attributepublic java.lang.String getInvalidAttributeType()
This method returns the type of the invalid attribute.
public void setInvalidAttributeValue(java.lang.Object localInvalidAttributeValue)
This method sets the value of the invalid attribute.
localInvalidAttributeValue
- the value of the invalid attributepublic java.lang.String getInvalidAttributeValue()
This method returns the value of the invalid attribute.
public java.lang.String dumpException()
dumpException
in class BaseException