Package edu.berkeley.cs.jqf.fuzz
Class MultipleFailuresError
java.lang.Object
java.lang.Throwable
java.lang.Error
edu.berkeley.cs.jqf.fuzz.MultipleFailuresError
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionMultipleFailuresError(List<Throwable> failures) Creates an aggregate error from the given failures. -
Method Summary
Modifier and TypeMethodDescriptionReturns the individual failures bundled in this error.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MultipleFailuresError
Creates an aggregate error from the given failures.- Parameters:
failures- the failing throwables to bundle
-
-
Method Details
-
getFailures
Returns the individual failures bundled in this error.- Returns:
- an unmodifiable list of the failing throwables
-
getMessage
- Overrides:
getMessagein classThrowable
-