Class ValidationException

    • Constructor Detail

      • ValidationException

        public ValidationException​(Validator.Status status,
                                   Response response,
                                   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,
                                   String message,
                                   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,
                                   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,
                                   String message,
                                   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