Initial Commit
[packages] / xemacs-packages / jde / java / src / jde / debugger / spec / ExceptionSpec.java
1 package jde.debugger.spec;
2
3 import com.sun.jdi.*;
4 import com.sun.jdi.request.*;
5
6 /**
7  * ExceptionSpec.java
8  * <p>
9  * 
10  * <p>
11  * Created: Mon Aug  2 17:01:35 1999
12  * 
13  * @author Amit Kumar
14  * @author Paul Kinnucan
15  * @since 0.1
16  * @version $Revision: 1.3 $
17  */
18
19 public class ExceptionSpec extends EventRequestSpec {
20
21   boolean notifyCaught;
22
23   boolean notifyUncaught;
24
25   public ExceptionSpec(ReferenceTypeSpec spec, 
26                        boolean notifyCaught, boolean notifyUncaught) {
27     super(spec);
28     this.notifyCaught = notifyCaught;
29     this.notifyUncaught = notifyUncaught;
30   }
31
32   public boolean resolve(ReferenceType refType) {
33     ExceptionRequest er =
34       refType.virtualMachine().eventRequestManager().createExceptionRequest(refType, notifyCaught, notifyUncaught);
35     super.setRequest(er);
36     return true;
37   }
38
39 } // ExceptionSpec
40
41 /*
42  * $Log: ExceptionSpec.java,v $
43  * Revision 1.3  2003/01/15 06:06:15  paulk
44  * Petter Mahlen's changes.
45  *
46  */
47
48 // End of ExceptionSpec.java
49