Package ai.preferred.venom.fetcher
Class ValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ai.preferred.venom.fetcher.ValidationException
-
- All Implemented Interfaces:
java.io.Serializable
public class ValidationException extends java.lang.Exception- Author:
- Ween Jiann Lee
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationException(Validator.Status status, Response response, java.lang.String message)Constructs a validation exception with a message.ValidationException(Validator.Status status, Response response, java.lang.String message, java.lang.Throwable cause)ValidationException(Validator.Status status, Response response, java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)ValidationException(Validator.Status status, Response response, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablefillInStackTrace()ResponsegetResponse()Get the response validated.Validator.StatusgetStatus()Get the validation status of the response.
-
-
-
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 validatedmessage- 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 validatedmessage- A message about the exceptioncause- 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 validatedcause- 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 validatedmessage- A message about the exceptioncause- The cause of the exceptionenableSuppression- 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:
fillInStackTracein classjava.lang.Throwable
-
-