org.apache.commons.pipeline.validation
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.pipeline.validation.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException
extends Exception

This exception is used to indicate that one or more validation errors have occurred during an operation.

See Also:
Serialized Form

Constructor Summary
ValidationException(List<ValidationFailure> errors)
          Creates a new instance of ValidationException without detail message.
ValidationException(String msg, List<ValidationFailure> errors)
          Constructs an instance of ValidationException with the specified detail message.
 
Method Summary
 List<ValidationFailure> getValidationErrors()
          Returns the list of errors that precipitated this validation exception.
 
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(List<ValidationFailure> errors)
Creates a new instance of ValidationException without detail message.

Parameters:
errors - the list of errors that caused the exception

ValidationException

public ValidationException(String msg,
                           List<ValidationFailure> errors)
Constructs an instance of ValidationException with the specified detail message.

Parameters:
errors - The list of errors that caused the exception
msg - the detail message.
Method Detail

getValidationErrors

public List<ValidationFailure> getValidationErrors()
Returns the list of errors that precipitated this validation exception.

Returns:
the list of errors that precipitated this validation exception.


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.