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:
java.io.Serializable
public class FailFastAssertionException extends java.lang.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
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private ValidationMessage
validationMessage
-
Constructor Summary
Constructors Constructor Description FailFastAssertionException(ValidationMessage validationMessage)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
fillInStackTrace()
java.lang.String
getMessage()
ValidationMessage
getValidationMessage()
Gets the validation message.java.util.Set<ValidationMessage>
getValidationMessages()
Gets the validation message.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
validationMessage
private final ValidationMessage validationMessage
-
-
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 java.util.Set<ValidationMessage> getValidationMessages()
Gets the validation message.- Returns:
- the validation message
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
fillInStackTrace
public java.lang.Throwable fillInStackTrace()
- Overrides:
fillInStackTrace
in classjava.lang.Throwable
-
-