Interface AiNodeExceptionHook

All Known Subinterfaces:
AiGraphAgentHandler<T,R,F>
All Known Implementing Classes:
AbstractGraphAgent, DynamicWorkflowGraphAgent
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AiNodeExceptionHook
Node exception handling callback interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    when someone Node Triggered when a blocking exception (non-business processing exception) is thrown during operation. Returns a policy enumeration that guides Engine Next action.
  • Method Details

    • onNodeException

      NodeExceptionStrategy onNodeException(String nodeName, Throwable ex, AiInvocationContext<?> ctx)
      when someone Node Triggered when a blocking exception (non-business processing exception) is thrown during operation. Returns a policy enumeration that guides Engine Next action.
      Parameters:
      nodeName - Node name
      ex - Exception thrown
      ctx - current execution context
      Returns:
      Exception handling strategy