Class Breakpoint.ExceptionBuilder

java.lang.Object
com.oracle.truffle.api.debug.Breakpoint.ExceptionBuilder
Enclosing class:
Breakpoint

public final class Breakpoint.ExceptionBuilder extends Object
Builder implementation for a new breakpoint of EXCEPTION kind.
Since:
19.0
See Also:
  • Method Details

    • suspensionFilter

      public Breakpoint.ExceptionBuilder suspensionFilter(SuspensionFilter filter)
      A filter to limit source locations which intercept exceptions. Only the source locations matching the filter will report thrown exceptions.
      Since:
      19.0
    • sourceElements

      public Breakpoint.ExceptionBuilder sourceElements(SourceElement... sourceElements)
      Specifies which source elements will this breakpoint adhere to. When not specified, breakpoint adhere to SourceElement.STATEMENT elements. Can only be invoked once per builder.
      Parameters:
      sourceElements - a non-empty list of source elements
      Since:
      19.0
    • build

      public Breakpoint build()
      Returns:
      a new breakpoint instance of EXCEPTION kind.
      Since:
      19.0