Class MultipleFailuresError

All Implemented Interfaces:
Serializable

public class MultipleFailuresError extends AssertionError
MultipleFailuresError is an AssertionError that aggregates multiple failures thrown in a given context (i.e., typically within the invocation of a single test).
Since:
1.0
Author:
Johannes Link, Sam Brannen, Marc Philipp
See Also:
  • Constructor Details

    • MultipleFailuresError

      public MultipleFailuresError(String heading, List<? extends Throwable> failures)
      Constructs an MultipleFailuresError with the supplied heading and failures.
      Parameters:
      heading - the message heading; a default value will be used if null or blank
      failures - the list of failures; must not be null or contain null elements
  • Method Details

    • getMessage

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

      public List<Throwable> getFailures()
      Returns the list of failures contained in this error.
    • hasFailures

      public boolean hasFailures()
      Returns whether this error contains any failures.