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 String getMessage()
getMessage in class Throwablepublic static void assertEmpty(List<Throwable> errors) throws Throwable
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 checkThrowable - if the list is not empty