Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.batch.item.ItemReaderException
org.springframework.batch.item.validator.ValidationException
- All Implemented Interfaces:
Serializable
This exception should be thrown when there are validation errors.
- Author:
- Ben Hale, Mahmoud Ben Hassine
- See Also:
-
Constructor Summary
ConstructorDescriptionValidationException
(String message) Create a newValidationException
based on a message.ValidationException
(String message, Throwable cause) Create a newValidationException
based on a message and another exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
Create a newValidationException
based on a message and another exception.- Parameters:
message
- the message for this exceptioncause
- the other exception
-
ValidationException
Create a newValidationException
based on a message.- Parameters:
message
- the message for this exception
-