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:
java.io.Serializable
public class ValidationException extends ItemReaderException
This exception should be thrown when there are validation errors.- Author:
- Ben Hale
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description ValidationException(java.lang.String message)
Create a newValidationException
based on a message.ValidationException(java.lang.String message, java.lang.Throwable cause)
Create a newValidationException
based on a message and another exception.
Constructor Detail
ValidationException
public ValidationException(java.lang.String message, java.lang.Throwable cause)
Create a newValidationException
based on a message and another exception.- Parameters:
message
- the message for this exceptioncause
- the other exception
ValidationException
public ValidationException(java.lang.String message)
Create a newValidationException
based on a message.- Parameters:
message
- the message for this exception