Class MultipleFailuresError

java.lang.Object
java.lang.Throwable
java.lang.Error
edu.berkeley.cs.jqf.fuzz.MultipleFailuresError
All Implemented Interfaces:
Serializable

public class MultipleFailuresError extends Error
Aggregates several trial failures from one fuzzing campaign into a single error.

The engine throws this when more than one input fails, in place of JUnit 4's MultipleFailureException, so the fuzzing loop stays free of any test-framework dependency. A framework adapter may translate it back into its own aggregate type for richer reporting.

See Also:
  • Constructor Details

    • MultipleFailuresError

      public MultipleFailuresError(List<Throwable> failures)
      Creates an aggregate error from the given failures.
      Parameters:
      failures - the failing throwables to bundle
  • Method Details

    • getFailures

      public List<Throwable> getFailures()
      Returns the individual failures bundled in this error.
      Returns:
      an unmodifiable list of the failing throwables
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable