org.apache.commons.pipeline.validation
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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 exceptionmsg
- the detail message.
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.