Class DynamicNodeFailedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.adk.workflow.DynamicNodeFailedException
All Implemented Interfaces:
Serializable

@Experimental public final class DynamicNodeFailedException extends RuntimeException
An exception that Context.runNode(com.google.adk.workflow.Node) signals when the child node fails. If the caller does not handle this exception, the caller fails with the child's error without emitting an error event of its own.
See Also:
  • Method Details

    • error

      public Exception error()
      Returns the exception the child failed with, which is also this exception's cause.
    • errorNodePath

      public String errorNodePath()
      Returns the path of the node that raised error(), which is either the child or one of its descendants.