Serializable
public class MultipleFailureException extends Exception
Throwable
s 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, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MultipleFailureException(List<Throwable> errors)
public List<Throwable> getFailures()
public String getMessage()
getMessage
in class Throwable
public 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.