Class ValidatorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.validator.ValidatorException
All Implemented Interfaces:
Serializable

public class ValidatorException extends Exception
The base exception for the Validator Framework. All other Exceptions thrown during calls to Validator.validate() are considered errors.
See Also:
  • Constructor Details

    • ValidatorException

      Constructs an Exception with no specified detail message.
    • ValidatorException

      public ValidatorException(String message)
      Constructs an Exception with the specified detail message.
      Parameters:
      message - The error message.
    • ValidatorException

      public ValidatorException(String format, Object... args)
      Constructs an Exception with a message and the underlying cause.
      Parameters:
      format - See String.format(String, Object...).
      args - See String.format(String, Object...).
      Throws:
      IllegalFormatException - See String.format(String, Object...).
      Since:
      1.11.0
    • ValidatorException

      public ValidatorException(String message, Throwable cause)
      Constructs a new exception with the specified detail message and cause.

      Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

      Parameters:
      message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value 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 of cause). 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 the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
      Since:
      1.11.0