javaApiInterceptSubgraphExecutionFailed

Intercepts subgraph execution when it fails.

Parameters

feature

The feature associated with this handler.

handle

The handler that processes subgraph-failure events.

Example:

pipeline.interceptSubgraphExecutionFailed(feature, eventContext -> {
logger.warn("Subgraph " + eventContext.getSubgraph().getName()
+ " failed with error: " + eventContext.getThrowable().getMessage());
});