Class ToolAuthorizationException

All Implemented Interfaces:
Serializable

public class ToolAuthorizationException extends ToolException
Tool credential is valid but lacks permission for the requested operation — typically HTTP 403 from upstream, RBAC denial, scope mismatch on an OAuth token. Distinct from ToolAuthenticationException (who you are vs what you can do).

Non-retryable: the same call with the same credential keeps failing until the caller is granted the missing permission.

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

    • ToolAuthorizationException

      public ToolAuthorizationException(String toolName, String message, String requiredPermission)
  • Method Details

    • getRequiredPermission

      public String getRequiredPermission()
    • 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