01: // $Id: PasteAspectsException.java,v 1.1.1.1 2003/07/02 15:30:52 apopovic Exp $
02: // =====================================================================
03: //
04: // (history at end)
05: //
06:
07: package ch.ethz.prose.tools;
08:
09: import java.util.*;
10:
11: /**
12: * Exception class PasteAspectsException signals that XXX
13: *
14: * @version $Revision: 1.1.1.1 $
15: * @author Andrei Popovici
16: */
17: public class PasteAspectsException extends Exception {
18:
19: private static final long serialVersionUID = 3258411729187778608L;
20:
21: public List exceptionsDuringPaste = new Vector();
22:
23: /**
24: * Constructs an <code>PasteAspectsException</code> with no detail message.
25: */
26: public PasteAspectsException() {
27: super ();
28: }
29:
30: /**
31: * Constructs an <code>PasteAspectsException</code> with the specified
32: * detail message.
33: */
34: public PasteAspectsException(String s) {
35: super (s);
36: }
37:
38: public void add(Throwable x) {
39: exceptionsDuringPaste.add(x);
40: }
41:
42: public boolean containsExceptions() {
43: return !exceptionsDuringPaste.isEmpty();
44: }
45:
46: public String getMessage() {
47: return exceptionsDuringPaste.toString();
48: }
49:
50: }
51:
52: //======================================================================
53: //
54: // $Log: PasteAspectsException.java,v $
55: // Revision 1.1.1.1 2003/07/02 15:30:52 apopovic
56: // Imported from ETH Zurich
57: //
58: // Revision 1.1 2003/05/25 13:25:21 popovici
59: // Refactoring
60: // inf.iks.tools is now prose.tools
61: // Stupid 'MyTableModel' renamed to 'WorksheetClientMode'
62: // - other renamings from bad names to reasonable names
63: //
64: // Revision 1.1 2003/05/25 12:57:02 popovici
65: // Initial revision
66: //
|