01: package org.junit.internal.runners;
02:
03: import java.util.Arrays;
04: import java.util.List;
05:
06: public class InitializationError extends Exception {
07: private static final long serialVersionUID = 1L;
08: private final List<Throwable> fErrors;
09:
10: public InitializationError(List<Throwable> errors) {
11: fErrors = errors;
12: }
13:
14: public InitializationError(Throwable... errors) {
15: this (Arrays.asList(errors));
16: }
17:
18: public InitializationError(String string) {
19: this (new Exception(string));
20: }
21:
22: public List<Throwable> getCauses() {
23: return fErrors;
24: }
25: }
|