public class MultipleFailureException
extends java.lang.Exception
Throwables into one exception.| Constructor and Description |
|---|
MultipleFailureException(java.util.List<java.lang.Throwable> errors) |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertEmpty(java.util.List<java.lang.Throwable> errors)
Asserts that a list of throwables is empty.
|
java.util.List<java.lang.Throwable> |
getFailures() |
java.lang.String |
getMessage() |
public MultipleFailureException(java.util.List<java.lang.Throwable> errors)
public java.util.List<java.lang.Throwable> getFailures()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic static void assertEmpty(java.util.List<java.lang.Throwable> errors)
throws java.lang.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 checkjava.lang.Exception - or Error if the list is not empty