Package org.bsc.langgraph4j
Class GraphRunnerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.bsc.langgraph4j.GraphRunnerException
- All Implemented Interfaces:
Serializable
Exception thrown when there is an error during the execution of a graph runner.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGraphRunnerException(RunnableConfig config, String errorMessage) GraphRunnerException(RunnableConfig config, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GraphRunnerException
-
GraphRunnerException
-
-
Method Details
-
config
-
nodeId
Returns the identifier of the node that was being executed when the error occurred.The value is resolved from the
RunnableConfigcarried by this exception (metadata keyRunnableConfig.NODE_ID). UnlikeRunnableConfig.nodeId(), which throws when no node id is present, this accessor returns an emptyOptionalwhen the failure happens outside the scope of a specific node (for example, during entry-point resolution), so it is safe to call while handling a failure.- Returns:
- an
Optionalcontaining the failing node id, or empty if it cannot be determined - Since:
- 1.9.0
-