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:
    Serialized Form
    • Constructor Detail

      • FailFastAssertionException

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

      • 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