public class MultipleFailureException extends Exception
Throwable
s into one exception.Constructor and Description |
---|
MultipleFailureException(List<Throwable> errors) |
Modifier and Type | Method and Description |
---|---|
static void |
assertEmpty(List<Throwable> errors)
Asserts that a list of throwables is empty.
|
List<Throwable> |
getFailures() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public String getMessage()
getMessage
in class Throwable
public static void assertEmpty(List<Throwable> errors) throws Exception
MultipleFailureException
(if there are
multiple throwables in the list) or the first element in the list
(if there is only one element).errors
- list to checkException
- or Error if the list is not emptyCopyright © 2002–2015 JUnit. All rights reserved.