Class ValidatorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.validator.ValidatorException
- All Implemented Interfaces:
Serializable
The base exception for the Validator Framework. All other
Exceptions thrown during calls to Validator.validate() are considered errors.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an Exception with no specified detail message.ValidatorException(String message) Constructs an Exception with the specified detail message.ValidatorException(String format, Object... args) Constructs an Exception with a message and the underlying cause.ValidatorException(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.ValidatorException(Throwable cause) Constructs a new exception with the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause). -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidatorException
public ValidatorException()Constructs an Exception with no specified detail message. -
ValidatorException
Constructs an Exception with the specified detail message.- Parameters:
message- The error message.
-
ValidatorException
Constructs an Exception with a message and the underlying cause.- Parameters:
format- SeeString.format(String, Object...).args- SeeString.format(String, Object...).- Throws:
IllegalFormatException- SeeString.format(String, Object...).- Since:
- 1.11.0
-
ValidatorException
Constructs a new exception with the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated in this exception's detail message.- Parameters:
message- The detail message (which is saved for later retrieval by theThrowable.getMessage()method).cause- The cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.11.0
-
ValidatorException
Constructs a new exception with the specified cause and a detail message of(cause==null ? null : cause.toString())(which typically contains the class and detail message ofcause). This constructor is useful for exceptions that are little more than wrappers for other throwables (for example,PrivilegedActionException).- Parameters:
cause- The cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)- Since:
- 1.11.0
-