public class MultipleFailureException extends Exception
Throwables 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, toStringpublic MultipleFailureException(List<Throwable> errors)
public List<Throwable> getFailures()
public String getMessage()
getMessage in class Throwablepublic 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–2017 JUnit. All rights reserved.