Uses of Class
com.tnsai.tools.spi.ToolException
Packages that use ToolException
Package
Description
Service Provider Interface for pluggable tool implementations.
-
Uses of ToolException in com.tnsai.tools.spi
Subclasses of ToolException in com.tnsai.tools.spiModifier and TypeClassDescriptionclassTool authentication failed — typically HTTP 401 from upstream, missing or invalid API key, expired bearer token.classTool credential is valid but lacks permission for the requested operation — typically HTTP 403 from upstream, RBAC denial, scope mismatch on an OAuth token.classTool itself is misconfigured — missing required environment variable, invalid endpoint URL, malformed credential file.classTool failed due to a conflict against current upstream state — typically HTTP 409, optimistic-concurrency version mismatch, stale-resource update, unique-constraint violation.classTool failed because the upstream external service returned a server-side error — typically HTTP 5xx, a connection reset, or any provider-side malfunction the tool itself did not cause.classTool input was invalid — required field missing, type mismatch, value outside allowed range, schema violation.classRemote resource the tool was asked to operate on does not exist — typically HTTP 404 from upstream, file-not-found, missing record.classTool was rate-limited by upstream — typically HTTP 429.classTool produced a result that the framework could not marshal back to the caller — JSON encoding failed, return-type adapter missing, recursive object graph.classTool exceeded its execution deadline.classCatchall for tool failures that don't fit any other typed subclass — a pureRuntimeExceptionthrown from inside the tool, anAssertionError, or anything else escaping the well-defined failure taxonomy.classTool execution was canceled by the user — confirmation prompt declined, deadline elapsed before the user responded, or an explicit abort signal.Methods in com.tnsai.tools.spi that return ToolExceptionModifier and TypeMethodDescriptionstatic ToolExceptionCreate an API error.ToolException.Builder.build()static ToolExceptionToolException.configurationError(String toolName, String envVar) Create a configuration error (e.g., missing API key).static ToolExceptionToolException.networkError(String toolName, Throwable cause) Create a network error.static ToolExceptionToolException.parseError(String toolName, String message, Throwable cause) Create a parse error.static ToolExceptionCreate a timeout error.static ToolExceptionToolException.validationError(String toolName, String message) Create a validation error.