Serializablepublic class MultipleFailureException extends Exception
Throwables into one exception.| Constructor | Description |
|---|---|
MultipleFailureException(List<Throwable> errors) |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
assertEmpty(List<Throwable> errors) |
Asserts that a list of throwables is empty.
|
List<Throwable> |
getFailures() |
|
String |
getMessage() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, 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–2018 JUnit. All rights reserved.