1 7 package ch.ethz.prose.tools; 8 import java.util.*; 9 10 16 public 17 class PasteAspectsException extends Exception { 18 19 public List exceptionsDuringPaste = new Vector(); 20 21 24 public PasteAspectsException() 25 { 26 super(); 27 } 28 29 33 public PasteAspectsException(String s) 34 { 35 super(s); 36 } 37 38 public void add(Throwable x) 39 { 40 exceptionsDuringPaste.add(x); 41 } 42 43 public boolean containsExceptions() 44 { 45 return !exceptionsDuringPaste.isEmpty(); 46 } 47 48 public String getMessage() 49 { 50 return exceptionsDuringPaste.toString(); 51 } 52 53 } 54 55 56 | Popular Tags |