public class MultipleFailureException
extends java.lang.Exception
Throwable
s into one exception.Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Throwable> |
fErrors |
private static long |
serialVersionUID |
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() |
void |
printStackTrace() |
void |
printStackTrace(java.io.PrintStream s) |
void |
printStackTrace(java.io.PrintWriter s) |
private static final long serialVersionUID
private final java.util.List<java.lang.Throwable> fErrors
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 void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
public 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