KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > alt > jiapi > event > ExceptionEvent


1 /*
2  * Copyright(C) 2001 Mika Riekkinen, Joni Suominen
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or(at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19 package alt.jiapi.event;
20
21 import java.util.EventObject JavaDoc;
22
23 /**
24  * ExceptionEvent objects are used to identify fields that
25  * are accessed
26  *
27  * @author Mika Riekkinen
28  * @author Joni Suominen
29  * @version $Revision: 1.4 $ $Date: 2002/03/20 12:00:32 $
30  */

31 public class ExceptionEvent extends JiapiEvent {
32     /**
33      * Constant used as an id of the ExceptionEvent
34      */

35     public static final int CATCH_TRAPPED = 1; // Should be renamed
36

37     /**
38      * Constructor for ExceptionEvent. Target is set to null
39      *
40      * @param eep An instance of ExceptionEventProducer
41      * @param sourceObject A Source Object. On static methods, this
42      * is the <code>Class</code>, that method belongs to.
43      * Otherwise Source Object is '<code>this</code>'.
44      * @param exceptionName Name of the exception
45      * @param id An id of the event being constructed. CATCH_TRAPPED
46      */

47     public ExceptionEvent(ExceptionEventProducer eep, Object JavaDoc sourceObject,
48                           String JavaDoc exceptionName, int id) {
49         super(eep, sourceObject, exceptionName, null, id);
50     }
51
52     /**
53      * Constructor for ExceptionEvent.
54      *
55      * @param eep An instance of ExceptionEventProducer
56      * @param sourceObject A Source Object. On static methods, this
57      * is the <code>Class</code>, that method belongs to.
58      * Otherwise Source Object is '<code>this</code>'.
59      * @param exceptionName Name of the exception
60      * @param target Exception, that triggered this event to be
61      * constructed.
62      * @param id An id of the event being constructed. CATCH_TRAPPED
63      */

64     public ExceptionEvent(ExceptionEventProducer eep, Object JavaDoc sourceObject,
65                           String JavaDoc exceptionName, Object JavaDoc target,
66                           int id) {
67         super(eep, sourceObject, exceptionName, target, id);
68     }
69 }
70
71
72
Popular Tags