01: // $Id: TransactionFinishException.java,v 1.1.1.1 2003/07/02 15:30:53 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 TransactionFinishException signals that XXX
13: *
14: * @version $Revision: 1.1.1.1 $
15: * @author Andrei Popovici
16: */
17: public class TransactionFinishException extends Exception {
18:
19: private static final long serialVersionUID = 3689629203108803128L;
20:
21: public List exceptionsDuringPaste = new Vector();
22:
23: /**
24: * Constructs an <code>TransactionFinishException</code> with no detail message.
25: */
26: public TransactionFinishException() {
27: super ();
28: }
29:
30: /**
31: * Constructs an <code>TransactionFinishException</code> with the specified
32: * detail message.
33: */
34: public TransactionFinishException(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: TransactionFinishException.java,v $
55: // Revision 1.1.1.1 2003/07/02 15:30:53 apopovic
56: // Imported from ETH Zurich
57: //
58: // Revision 1.1 2003/05/25 13:25:24 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:03 popovici
65: // Initial revision
66: //
|