public class InvalidFormatException
extends java.lang.RuntimeException
Constructor and Description |
---|
InvalidFormatException(java.lang.String invalidValue,
java.lang.String expectedFormat)
Create a new invalid format exception.
|
InvalidFormatException(java.lang.String invalidValue,
java.lang.String expectedFormat,
java.lang.String message,
java.lang.Throwable cause)
Create a new invalid format exception.
|
InvalidFormatException(java.lang.String invalidValue,
java.lang.String expectedFormat,
java.lang.Throwable cause)
Create a new invalid format exception.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpectedFormat()
Returns the expected format.
|
java.lang.String |
getInvalidValue()
Returns the invalid value.
|
public InvalidFormatException(java.lang.String invalidValue, java.lang.String expectedFormat)
invalidValue
- the invalid valueexpectedFormat
- the expected formatpublic InvalidFormatException(java.lang.String invalidValue, java.lang.String expectedFormat, java.lang.Throwable cause)
invalidValue
- the invalid valueexpectedFormat
- the expected formatcause
- the underlying cause of this exceptionpublic InvalidFormatException(java.lang.String invalidValue, java.lang.String expectedFormat, java.lang.String message, java.lang.Throwable cause)
invalidValue
- the invalid valueexpectedFormat
- the expected formatmessage
- a descriptive messagecause
- the underlying cause of this exception