Package org.jboss.jca.validator
Class ValidatorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jboss.jca.validator.ValidatorException
-
- All Implemented Interfaces:
Serializable
public class ValidatorException extends Exception
Represents a failure in the validator chain- Author:
- Stefano Maestri
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidatorException(String message, Collection<Failure> failures)Constructs a new exception with the specified detail message.ValidatorException(String message, Collection<Failure> failures, Throwable cause)Constructs a new exception with the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Failure>getFailures()Get the collection of failures-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ValidatorException
public ValidatorException(String message, Collection<Failure> failures)
Constructs a new exception with the specified detail message.- Parameters:
message- The messagefailures- collection of failures
-
ValidatorException
public ValidatorException(String message, Collection<Failure> failures, Throwable cause)
Constructs a new exception with the specified detail message.- Parameters:
message- The messagefailures- collection of failurescause- the cause to be chained
-
-
Method Detail
-
getFailures
public Collection<Failure> getFailures()
Get the collection of failures- Returns:
- failures
-
-