KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > prose > tools > PasteAspectsException


1 // $Id: PasteAspectsException.java,v 1.1.1.1 2003/07/02 15:30:52 apopovic Exp $
2
// =====================================================================
3
//
4
// (history at end)
5
//
6

7 package ch.ethz.prose.tools;
8 import java.util.*;
9
10 /**
11  * Exception class PasteAspectsException signals that XXX
12  *
13  * @version $Revision: 1.1.1.1 $
14  * @author Andrei Popovici
15  */

16 public
17 class PasteAspectsException extends Exception JavaDoc {
18
19   public List exceptionsDuringPaste = new Vector();
20
21   /**
22    * Constructs an <code>PasteAspectsException</code> with no detail message.
23    */

24   public PasteAspectsException()
25   {
26     super();
27   }
28
29   /**
30    * Constructs an <code>PasteAspectsException</code> with the specified
31    * detail message.
32    */

33   public PasteAspectsException(String JavaDoc s)
34   {
35     super(s);
36   }
37
38   public void add(Throwable JavaDoc x)
39     {
40       exceptionsDuringPaste.add(x);
41     }
42
43   public boolean containsExceptions()
44     {
45       return !exceptionsDuringPaste.isEmpty();
46     }
47
48   public String JavaDoc getMessage()
49     {
50       return exceptionsDuringPaste.toString();
51     }
52
53 }
54
55
56 //======================================================================
57
//
58
// $Log: PasteAspectsException.java,v $
59
// Revision 1.1.1.1 2003/07/02 15:30:52 apopovic
60
// Imported from ETH Zurich
61
//
62
// Revision 1.1 2003/05/25 13:25:21 popovici
63
// Refactoring
64
// inf.iks.tools is now prose.tools
65
// Stupid 'MyTableModel' renamed to 'WorksheetClientMode'
66
// - other renamings from bad names to reasonable names
67
//
68
// Revision 1.1 2003/05/25 12:57:02 popovici
69
// Initial revision
70
//
71
Popular Tags