org.springframework.batch.item.validator
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.batch.item.ItemReaderException
                  extended by org.springframework.batch.item.validator.ValidationException
All Implemented Interfaces:
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
ValidationException(String message)
          Create a new ValidationException based on a message.
ValidationException(String message, Throwable cause)
          Create a new ValidationException based on a message and another exception.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(String message,
                           Throwable cause)
Create a new ValidationException based on a message and another exception.

Parameters:
message - the message for this exception
cause - the other exception

ValidationException

public ValidationException(String message)
Create a new ValidationException based on a message.

Parameters:
message - the message for this exception


Copyright © 2009 SpringSource. All Rights Reserved.