1 package org.junit.internal.runners; 2 3 import java.util.Arrays; 4 import java.util.List; 5 6 /** 7 * Use the published version: 8 * {@link org.junit.runners.model.InitializationError} 9 * This may disappear as soon as 1 April 2009 10 */ 11 @Deprecated 12 public class InitializationError extends Exception { 13 private static final long serialVersionUID = 1L; 14 15 /* 16 * We have to use the f prefix until the next major release to ensure 17 * serialization compatibility. 18 * See https://github.com/junit-team/junit/issues/976 19 */ 20 private final List<Throwable> fErrors; 21 22 public InitializationError(List<Throwable> errors) { 23 this.fErrors = errors; 24 } 25 26 public InitializationError(Throwable... errors) { 27 this(Arrays.asList(errors)); 28 } 29 30 public InitializationError(String string) { 31 this(new Exception(string)); 32 } 33 34 public List<Throwable> getCauses() { 35 return fErrors; 36 } 37 } 38