Eclipse JDT
2.0

org.eclipse.jdt.debug.core
Interface IJavaExceptionBreakpoint

All Superinterfaces:
IAdaptable, IBreakpoint, IJavaBreakpoint

public interface IJavaExceptionBreakpoint
extends IJavaBreakpoint

A breakpoint that suspends execution when a corresponding exception is thrown in a target VM. An exception breakpoint can be configured to suspend execution when the corresponding exception is thrown in a caught or uncaught location. As well, the location can be filtered inclusively or exclusively by type name patterns.

Clients are not intended to implement this interface.

Since:
2.0

Field Summary
 
Fields inherited from interface org.eclipse.jdt.debug.core.IJavaBreakpoint
SUSPEND_THREAD, SUSPEND_VM
 
Fields inherited from interface org.eclipse.debug.core.model.IBreakpoint
BREAKPOINT_MARKER, ENABLED, ID, LINE_BREAKPOINT_MARKER, PERSISTED, REGISTERED
 
Method Summary
 String getExceptionTypeName()
          Returns the fully qualified type name of the exception that last caused this breakpoint to suspend, of null if this breakpoint has not caused a thread to suspend.
 String[] getFilters()
          Returns the filters that define the scope for the associated exception.
 boolean isCaught()
          Returns whether this breakpoint suspends execution when the associated exception is thrown in a caught location (i.e.
 boolean isChecked()
          Returns whether the exception associated with this breakpoint is a checked exception (i.e.
 boolean isInclusiveFiltered()
          Returns whether to apply any filters as inclusive or exclusive.
 boolean isUncaught()
          Returns whether this breakpoint suspends execution when the associated exception is thrown in an uncaught location (i.e.
 void setCaught(boolean caught)
          Sets whether this breakpoint suspends execution when the associated exception is thrown in a caught location (i.e.
 void setFilters(String[] filters, boolean inclusive)
          Sets the filters that will define the scope for the associated exception.
 void setUncaught(boolean uncaught)
          Sets whether this breakpoint suspends execution when the associated exception is thrown in an uncaught location.
 
Methods inherited from interface org.eclipse.jdt.debug.core.IJavaBreakpoint
getHitCount, getSuspendPolicy, getThreadFilter, getThreadFilters, getTypeName, isInstalled, removeThreadFilter, setHitCount, setSuspendPolicy, setThreadFilter
 
Methods inherited from interface org.eclipse.debug.core.model.IBreakpoint
delete, getMarker, getModelIdentifier, isEnabled, isPersisted, isRegistered, setEnabled, setMarker, setPersisted, setRegistered
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

isCaught

public boolean isCaught()
                 throws CoreException
Returns whether this breakpoint suspends execution when the associated exception is thrown in a caught location (i.e. in a try/catch statement).

Returns:
true if this is a caught exception breakpoint
Throws:
CoreException - if unable to access the property from this breakpoint's underlying marker

isUncaught

public boolean isUncaught()
                   throws CoreException
Returns whether this breakpoint suspends execution when the associated exception is thrown in an uncaught location (i.e. not caught by a try/catch statement).

Returns:
true if this is an uncaught exception breakpoint.
Throws:
CoreException - if unable to access the property from this breakpoint's underlying marker

setCaught

public void setCaught(boolean caught)
               throws CoreException
Sets whether this breakpoint suspends execution when the associated exception is thrown in a caught location (i.e. in a try/catch statement).

Parameters:
caught - whether or not this breakpoint suspends execution when the associated exception is thrown in a caught location
Throws:
CoreException - if unable to set the property on this breakpoint's underlying marker

setUncaught

public void setUncaught(boolean uncaught)
                 throws CoreException
Sets whether this breakpoint suspends execution when the associated exception is thrown in an uncaught location.

Parameters:
uncaught - whether or not this breakpoint suspends execution when the associated exception is thrown in an uncaught location
Throws:
CoreException - if unable to set the property on this breakpoint's underlying marker

isChecked

public boolean isChecked()
                  throws CoreException
Returns whether the exception associated with this breakpoint is a checked exception (i.e. compiler detected, not a runtime exception)

Returns:
true if the exception associated with this breakpoint is a checked exception
Throws:
CoreException - if unable to access the property from this breakpoint's underlying marker

getExceptionTypeName

public String getExceptionTypeName()
Returns the fully qualified type name of the exception that last caused this breakpoint to suspend, of null if this breakpoint has not caused a thread to suspend. Note that this name may be a subtype of the exception that this breakpoint is associated with.

Returns:
fully qualified exception name or null

setFilters

public void setFilters(String[] filters,
                       boolean inclusive)
                throws CoreException
Sets the filters that will define the scope for the associated exception. Filters are a collection of strings of type name prefixes.

Parameters:
filters - the array of filters to apply
inclusive - whether or not to apply the filters as inclusive or exclusive
Throws:
CoreException - if unable to set the property on this breakpoint's underlying marker

getFilters

public String[] getFilters()
                    throws CoreException
Returns the filters that define the scope for the associated exception. Filters are a collection of strings of type name prefixes.

Returns:
the array of defined filters
Throws:
CoreException - if unable to access the property on this breakpoint's underlying marker

isInclusiveFiltered

public boolean isInclusiveFiltered()
                            throws CoreException
Returns whether to apply any filters as inclusive or exclusive.

Returns:
true if the filters are applied as inclusive, false if the filters are applied as exclusive
Throws:
CoreException - if unable to access the property on this breakpoint's underlying marker

Eclipse JDT
2.0

Copyright (c) IBM Corp. and others 2000, 2002. All Rights Reserved.