KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > junit > internal > runners > InitializationError


1 package org.junit.internal.runners;
2
3 import java.util.Arrays JavaDoc;
4 import java.util.List JavaDoc;
5
6 public class InitializationError extends Exception JavaDoc {
7     private static final long serialVersionUID= 1L;
8     private final List JavaDoc<Throwable JavaDoc> fErrors;
9
10     public InitializationError(List JavaDoc<Throwable JavaDoc> errors) {
11         fErrors= errors;
12     }
13
14     public InitializationError(Throwable JavaDoc... errors) {
15         this(Arrays.asList(errors));
16     }
17     
18     public InitializationError(String JavaDoc string) {
19         this(new Exception JavaDoc(string));
20     }
21
22     public List JavaDoc<Throwable JavaDoc> getCauses() {
23         return fErrors;
24     }
25 }
26
Popular Tags