1b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabotpackage org.junit.internal.runners;
2b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot
3b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabotimport java.util.Arrays;
4b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabotimport java.util.List;
5b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot
6b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot@Deprecated
7b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot/**
8b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot * Use the published version: {@link org.junit.runners.InitializationError}
9b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot * This may disappear as soon as 1 April 2009
10b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot */
11b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabotpublic class InitializationError extends Exception {
12b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	private static final long serialVersionUID= 1L;
13b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	private final List<Throwable> fErrors;
14b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot
15b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	public InitializationError(List<Throwable> errors) {
16b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot		fErrors= errors;
17b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	}
18b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot
19b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	public InitializationError(Throwable... errors) {
20b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot		this(Arrays.asList(errors));
21b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	}
22b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot
23b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	public InitializationError(String string) {
24b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot		this(new Exception(string));
25b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	}
26b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot
27b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	public List<Throwable> getCauses() {
28b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot		return fErrors;
29b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot	}
30b3823db9f1192d8c81345740b3e65bd6738ba55bBrett Chabot}
31