Class StandardTags.TryBlockTag

java.lang.Object
com.oracle.truffle.api.instrumentation.Tag
com.oracle.truffle.api.instrumentation.StandardTags.TryBlockTag
Enclosing class:
StandardTags

public static final class StandardTags.TryBlockTag extends Tag
Marks program locations to be considered as try blocks, that are followed by catch. To determine which exceptions are caught by InstrumentableNode tagged with this tag, the node might provide a node object that has catches function, which takes a an interop value that returns true for InteropLibrary.isException(Object) and returns a boolean value indicating whether the try block catches the exception, or not. When this block catches all exceptions, no special node object or catches function needs to be provided.
Since:
19.0