public class ValidationException extends Exception
Constructor and Description |
---|
ValidationException(Validator.Status status,
Response response,
String message)
Constructs a validation exception with a message.
|
ValidationException(Validator.Status status,
Response response,
String message,
Throwable cause) |
ValidationException(Validator.Status status,
Response response,
String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
ValidationException(Validator.Status status,
Response response,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Throwable |
fillInStackTrace() |
Response |
getResponse()
Get the response validated.
|
Validator.Status |
getStatus()
Get the validation status of the response.
|
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ValidationException(Validator.Status status, Response response, String message)
status
- The validation status of the response.response
- The response validatedmessage
- A message about the exceptionpublic ValidationException(Validator.Status status, Response response, String message, Throwable cause)
status
- The validation status of the response.response
- The response validatedmessage
- A message about the exceptioncause
- The cause of the exceptionpublic ValidationException(Validator.Status status, Response response, Throwable cause)
status
- The validation status of the response.response
- The response validatedcause
- The cause of the exceptionpublic ValidationException(Validator.Status status, Response response, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
status
- The validation status of the response.response
- The response validatedmessage
- A message about the exceptioncause
- The cause of the exceptionenableSuppression
- Enable suppression.writableStackTrace
- Enable writable stack trace.public final Validator.Status getStatus()
public final Response getResponse()
public final Throwable fillInStackTrace()
fillInStackTrace
in class Throwable
Copyright © 2018. All rights reserved.