类 MultipleFailureException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- org.junit.runners.model.MultipleFailureException
- 所有已实现的接口:
Serializable
public class MultipleFailureException extends Exception
Collects multipleThrowable
s into one exception.- 从以下版本开始:
- 4.9
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 MultipleFailureException(List<Throwable> errors)
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static void
assertEmpty(List<Throwable> errors)
Asserts that a list of throwables is empty.List<Throwable>
getFailures()
String
getMessage()
构造器详细资料
MultipleFailureException
public MultipleFailureException(List<Throwable> errors)
方法详细资料
getFailures
public List<Throwable> getFailures()
getMessage
public String getMessage()
- 覆盖:
getMessage
在类中Throwable
assertEmpty
public static void assertEmpty(List<Throwable> errors) throws Exception
Asserts that a list of throwables is empty. If it isn't empty, will throwMultipleFailureException
(if there are multiple throwables in the list) or the first element in the list (if there is only one element).- 参数:
errors
- list to check- 抛出:
Exception
- or Error if the list is not empty