Class ToolCancelledException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.alibaba.cloud.ai.graph.agent.tool.ToolCancelledException
- All Implemented Interfaces:
Serializable
Exception thrown when a tool execution is cancelled.
This exception is thrown when:
- A
CancellationTokenis triggered during tool execution - A tool's
CompletableFutureis cancelled - A tool explicitly checks for cancellation and aborts
- Since:
- 1.0.0
- Author:
- disaster
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionToolCancelledException(String message) ToolCancelledException(String message, 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
-
ToolCancelledException
-
ToolCancelledException
-