public class MultipleFailureException
extends java.lang.Exception
Throwable
s 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.Throwable
public static void assertEmpty(java.util.List<java.lang.Throwable> errors) throws java.lang.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 checkjava.lang.Throwable
- if the list is not empty