Class ValidationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ValidationException
    extends java.lang.Exception
    Author:
    Ween Jiann Lee
    See Also:
    Serialized Form
    • Constructor Detail

      • ValidationException

        public ValidationException​(Validator.Status status,
                                   Response response,
                                   java.lang.String message)
        Constructs a validation exception with a message.
        Parameters:
        status - The validation status of the response.
        response - The response validated
        message - A message about the exception
      • ValidationException

        public ValidationException​(Validator.Status status,
                                   Response response,
                                   java.lang.String message,
                                   java.lang.Throwable cause)
        Parameters:
        status - The validation status of the response.
        response - The response validated
        message - A message about the exception
        cause - The cause of the exception
      • ValidationException

        public ValidationException​(Validator.Status status,
                                   Response response,
                                   java.lang.Throwable cause)
        Parameters:
        status - The validation status of the response.
        response - The response validated
        cause - The cause of the exception
      • ValidationException

        public ValidationException​(Validator.Status status,
                                   Response response,
                                   java.lang.String message,
                                   java.lang.Throwable cause,
                                   boolean enableSuppression,
                                   boolean writableStackTrace)
        Parameters:
        status - The validation status of the response.
        response - The response validated
        message - A message about the exception
        cause - The cause of the exception
        enableSuppression - Enable suppression.
        writableStackTrace - Enable writable stack trace.
    • Method Detail

      • getStatus

        public final Validator.Status getStatus()
        Get the validation status of the response.
        Returns:
        Validation status of the response
      • getResponse

        public final Response getResponse()
        Get the response validated.
        Returns:
        Response validated
      • fillInStackTrace

        public final java.lang.Throwable fillInStackTrace()
        Overrides:
        fillInStackTrace in class java.lang.Throwable