Package com.networknt.schema
Class FailFastAssertionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.networknt.schema.FailFastAssertionException
-
- All Implemented Interfaces:
Serializable
public class FailFastAssertionException extends RuntimeException
Thrown when an assertion happens and the evaluation can fail fast.This doesn't extend off JsonSchemaException as it is used for flow control and is intended to be caught in a specific place.
This will be caught in the JsonSchema validate method to be passed to the output formatter.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FailFastAssertionException(ValidationMessage validationMessage)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
fillInStackTrace()
String
getMessage()
ValidationMessage
getValidationMessage()
Gets the validation message.Set<ValidationMessage>
getValidationMessages()
Gets the validation message.-
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FailFastAssertionException
public FailFastAssertionException(ValidationMessage validationMessage)
Constructor.- Parameters:
validationMessage
- the validation message
-
-
Method Detail
-
getValidationMessage
public ValidationMessage getValidationMessage()
Gets the validation message.- Returns:
- the validation message
-
getValidationMessages
public Set<ValidationMessage> getValidationMessages()
Gets the validation message.- Returns:
- the validation message
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
fillInStackTrace
public Throwable fillInStackTrace()
- Overrides:
fillInStackTrace
in classThrowable
-
-