Class ToolAuthenticationException

All Implemented Interfaces:
Serializable

public class ToolAuthenticationException extends ToolException
Tool authentication failed — typically HTTP 401 from upstream, missing or invalid API key, expired bearer token. Distinct from ToolAuthorizationException (the credential is valid but lacks permission for the operation).

Always non-retryable: same credential will keep failing until the caller fixes config / refreshes the token.

Since:
0.5.0 (issue #88)
See Also:
  • Constructor Details

    • ToolAuthenticationException

      public ToolAuthenticationException(String toolName, String message)
    • ToolAuthenticationException

      public ToolAuthenticationException(String toolName, String message, int httpStatusCode, Throwable cause)
  • Method Details

    • getErrorCode

      public String getErrorCode()
      Description copied from class: TnsAIException
      Gets the error code for this exception type. Format: TNSAI-XXX where XXX is derived from class name.
      Overrides:
      getErrorCode in class TnsAIException