public class

ExceptionEventSet

extends LocatableEventSet
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.sun.tools.example.debug.event.AbstractEventSet
       ↳ com.sun.tools.example.debug.event.LocatableEventSet
         ↳ com.sun.tools.example.debug.event.ExceptionEventSet

Summary

[Expand]
Inherited Fields
From class java.util.EventObject
Public Methods
Location getCatchLocation()
Gets the location where the exception will be caught.
ObjectReference getException()
Gets the thrown exception object.
void notify(JDIListener listener)
[Expand]
Inherited Methods
From class com.sun.tools.example.debug.event.LocatableEventSet
From class com.sun.tools.example.debug.event.AbstractEventSet
From class java.util.EventObject
From class java.lang.Object
From interface com.sun.jdi.Mirror
From interface com.sun.jdi.event.EventSet
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.Set

Public Methods

public Location getCatchLocation ()

Gets the location where the exception will be caught. An exception is considered to be caught if, at the point of the throw, the current location is dynamically enclosed in a try statement that handles the exception. (See the JVM specification for details). If there is such a try statement, the catch location is the first code index of the appropriate catch clause.

If there are native methods in the call stack at the time of the exception, there are important restrictions to note about the returned catch location. In such cases, it is not possible to predict whether an exception will be handled by some native method on the call stack. Thus, it is possible that exceptions considered uncaught here will, in fact, be handled by a native method and not cause termination of the target VM. Also, it cannot be assumed that the catch location returned here will ever be reached by the throwing thread. If there is a native frame between the current location and the catch location, the exception might be handled and cleared in that native method instead.

Returns
  • the Location where the exception will be caught or null if the exception is uncaught.

public ObjectReference getException ()

Gets the thrown exception object. The exception object is an instance of java.lang.Throwable or a subclass in the target VM.

Returns

public void notify (JDIListener listener)