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
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:
-
Constructor Summary
ConstructorsConstructorDescriptionFailFastAssertionException
(ValidationMessage validationMessage) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the validation message.Gets the validation message.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FailFastAssertionException
Constructor.- Parameters:
validationMessage
- the validation message
-
-
Method Details
-
getValidationMessage
Gets the validation message.- Returns:
- the validation message
-
getValidationMessages
Gets the validation message.- Returns:
- the validation message
-
getMessage
- Overrides:
getMessage
in classThrowable
-
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-