public class ExceptionBreakpoint extends JPDABreakpoint
DebuggerManager.addBreakpoint (ExceptionBreakpoint.create ( "java.lang.NullPointerException", ExceptionBreakpoint.TYPE_EXCEPTION_UNCAUGHT ));This breakpoint stops when NullPointerException is throw and uncatched.
Breakpoint.GroupProperties, Breakpoint.HIT_COUNT_FILTERING_STYLE, Breakpoint.VALIDITY
Modifier and Type | Field and Description |
---|---|
static String |
PROP_CATCH_TYPE
Property name constant.
|
static String |
PROP_CLASS_EXCLUSION_FILTERS
Property name constant
|
static String |
PROP_CLASS_FILTERS
Property name constant
|
static String |
PROP_CONDITION
Property name constant.
|
static String |
PROP_EXCEPTION_CLASS_NAME
Property name constant
|
static int |
TYPE_EXCEPTION_CATCHED
Deprecated.
|
static int |
TYPE_EXCEPTION_CATCHED_UNCATCHED
Deprecated.
|
static int |
TYPE_EXCEPTION_CAUGHT
Catch type constant that matches those exceptions that are caught by the user code.
|
static int |
TYPE_EXCEPTION_CAUGHT_UNCAUGHT
Catch type constant that matches all exceptions regardless of where and if they are caught.
|
static int |
TYPE_EXCEPTION_UNCATCHED
Deprecated.
|
static int |
TYPE_EXCEPTION_UNCAUGHT
Catch type constant that matches those exceptions that are not caught by the user code and run through.
|
PROP_HIDDEN, PROP_PRINT_TEXT, PROP_SUSPEND, SUSPEND_ALL, SUSPEND_EVENT_THREAD, SUSPEND_NONE
PROP_DISPOSED, PROP_ENABLED, PROP_GROUP_NAME, PROP_GROUP_PROPERTIES, PROP_HIT_COUNT_FILTER, PROP_VALIDITY
Modifier and Type | Method and Description |
---|---|
static ExceptionBreakpoint |
create(String exceptionClassName,
int catchType)
Creates a new breakpoint for given parameters.
|
int |
getCatchType()
Returns breakpoint type property value.
|
String[] |
getClassExclusionFilters()
Get list of class exclusion filters to stop on.
|
String[] |
getClassFilters()
Get list of class filters to stop on.
|
String |
getCondition()
Returns condition.
|
String |
getExceptionClassName()
Get name of exception class to stop on.
|
void |
setCatchType(int catchType)
Sets breakpoint type property value.
|
void |
setClassExclusionFilters(String[] classExclusionFilters)
Set list of class exclusion filters to stop on.
|
void |
setClassFilters(String[] classFilters)
Set list of class filters to stop on.
|
void |
setCondition(String cond)
Sets condition.
|
void |
setExceptionClassName(String cn)
Set name of exception class to stop on.
|
String |
toString()
Returns a string representation of this object.
|
addJPDABreakpointListener, canHaveDependentBreakpoints, disable, enable, getPrintText, getSession, getSuspend, isEnabled, isHidden, removeJPDABreakpointListener, setHidden, setPrintText, setSession, setSuspend
addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getBreakpointsToDisable, getBreakpointsToEnable, getGroupName, getGroupProperties, getHitCountFilter, getHitCountFilteringStyle, getValidity, getValidityMessage, removePropertyChangeListener, removePropertyChangeListener, setBreakpointsToDisable, setBreakpointsToEnable, setGroupName, setHitCountFilter, setValidity
public static final String PROP_EXCEPTION_CLASS_NAME
public static final String PROP_CLASS_FILTERS
public static final String PROP_CLASS_EXCLUSION_FILTERS
public static final String PROP_CATCH_TYPE
public static final String PROP_CONDITION
@Deprecated public static final int TYPE_EXCEPTION_CATCHED
ExceptionBreakpoint.TYPE_EXCEPTION_CAUGHT
@Deprecated public static final int TYPE_EXCEPTION_UNCATCHED
ExceptionBreakpoint.TYPE_EXCEPTION_UNCAUGHT
@Deprecated public static final int TYPE_EXCEPTION_CATCHED_UNCATCHED
ExceptionBreakpoint.TYPE_EXCEPTION_CAUGHT_UNCAUGHT
public static final int TYPE_EXCEPTION_CAUGHT
public static final int TYPE_EXCEPTION_UNCAUGHT
public static final int TYPE_EXCEPTION_CAUGHT_UNCAUGHT
public static ExceptionBreakpoint create(String exceptionClassName, int catchType)
exceptionClassName
- class name filtercatchType
- one of constants: ExceptionBreakpoint.TYPE_EXCEPTION_CAUGHT
,
#TYPE_EXCEPTION_UNCAUGHT, {@link #TYPE_EXCEPTION_CAUGHT_UNCAUGHT}.public String getExceptionClassName()
public void setExceptionClassName(String cn)
cn
- a new name of exception class to stop on.public String[] getClassFilters()
public void setClassFilters(String[] classFilters)
classFilters
- a new value of class filters propertypublic String[] getClassExclusionFilters()
public void setClassExclusionFilters(String[] classExclusionFilters)
classExclusionFilters
- a new value of class exclusion filters propertypublic String getCondition()
public void setCondition(String cond)
cond
- a c new conditionpublic int getCatchType()
public void setCatchType(int catchType)
catchType
- a new value of breakpoint type property value