Class Breakpoint.ExceptionBuilder
java.lang.Object
com.oracle.truffle.api.debug.Breakpoint.ExceptionBuilder
- Enclosing class:
Breakpoint
Builder implementation for a new
breakpoint of EXCEPTION kind.- Since:
- 19.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()sourceElements(SourceElement... sourceElements) Specifies which source elements will this breakpoint adhere to.suspensionFilter(SuspensionFilter filter) A filter to limit source locations which intercept exceptions.
-
Method Details
-
suspensionFilter
A filter to limit source locations which intercept exceptions. Only the source locations matching the filter will report thrown exceptions.- Since:
- 19.0
-
sourceElements
Specifies which source elements will this breakpoint adhere to. When not specified, breakpoint adhere toSourceElement.STATEMENTelements. Can only be invoked once per builder.- Parameters:
sourceElements- a non-empty list of source elements- Since:
- 19.0
-
build
- Returns:
- a new breakpoint instance of
EXCEPTIONkind. - Since:
- 19.0
-