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 SchemaException as it is used for flow control and is intended to be caught in a specific place.
This will be caught in the Schema validate method to be passed to the output formatter.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()Gets 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:
error- the validation message
-
-
Method Details
-
getError
Gets the validation message.- Returns:
- the validation message
-
getErrors
Gets the validation message.- Returns:
- the validation message
-
getMessage
- Overrides:
getMessagein classThrowable
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-