Class 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 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 Details

    • FailFastAssertionException

      public FailFastAssertionException(Error error)
      Constructor.
      Parameters:
      error - the validation message
  • Method Details

    • getError

      public Error getError()
      Gets the validation message.
      Returns:
      the validation message
    • getErrors

      public List<Error> getErrors()
      Gets the validation message.
      Returns:
      the validation message
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • fillInStackTrace

      public Throwable fillInStackTrace()
      Overrides:
      fillInStackTrace in class Throwable