1 package au.gov.amsa.util.rx; 2 3 import java.util.ArrayList; 4 import java.util.Arrays; 5 import java.util.List; 6 7 public class CompositeException extends Exception { 8 9 private static final long serialVersionUID = -1150240783814840391L; 10 11 private final List<Throwable> exceptions; 12 13 public CompositeException(Throwable... exceptions) { 14 this.exceptions = Arrays.asList(exceptions); 15 } 16 17 public List<Throwable> getExceptions() { 18 return new ArrayList<Throwable>(exceptions); 19 } 20 }