public class InvalidFormatException extends RuntimeException
| Constructor and Description |
|---|
InvalidFormatException(String invalidValue,
String expectedFormat)
Create a new invalid format exception.
|
InvalidFormatException(String invalidValue,
String expectedFormat,
String message,
Throwable cause)
Create a new invalid format exception.
|
InvalidFormatException(String invalidValue,
String expectedFormat,
Throwable cause)
Create a new invalid format exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExpectedFormat()
Returns the expected format.
|
String |
getInvalidValue()
Returns the invalid value.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidFormatException(String invalidValue, String expectedFormat)
invalidValue - the invalid valueexpectedFormat - the expected formatpublic InvalidFormatException(String invalidValue, String expectedFormat, Throwable cause)
invalidValue - the invalid valueexpectedFormat - the expected formatcause - the underlying cause of this exceptionpublic InvalidFormatException(String invalidValue, String expectedFormat, String message, Throwable cause)
invalidValue - the invalid valueexpectedFormat - the expected formatmessage - a descriptive messagecause - the underlying cause of this exception