Class InvalidFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.binding.convert.converters.InvalidFormatException
- All Implemented Interfaces:
Serializable
Thrown when a formatted value is of the wrong form.
- Author:
- Keith Donald
- See Also:
-
Constructor Summary
ConstructorDescriptionInvalidFormatException
(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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the expected format.Returns the invalid value.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidFormatException
Create a new invalid format exception.- Parameters:
invalidValue
- the invalid valueexpectedFormat
- the expected format
-
InvalidFormatException
Create a new invalid format exception.- Parameters:
invalidValue
- the invalid valueexpectedFormat
- the expected formatcause
- the underlying cause of this exception
-
InvalidFormatException
public InvalidFormatException(String invalidValue, String expectedFormat, String message, Throwable cause) Create a new invalid format exception.- Parameters:
invalidValue
- the invalid valueexpectedFormat
- the expected formatmessage
- a descriptive messagecause
- the underlying cause of this exception
-
-
Method Details
-
getInvalidValue
Returns the invalid value. -
getExpectedFormat
Returns the expected format.
-