Class PermissionDeniedException

All Implemented Interfaces:
io.agentscope.core.model.ModelHttpException, Serializable

public class PermissionDeniedException extends OpenAIException
Exception thrown when permission is denied (HTTP 403).

Common causes:

  • API key lacks required permissions
  • Resource access denied
  • Organization restrictions
See Also:
  • Constructor Details

    • PermissionDeniedException

      public PermissionDeniedException(String message, String errorCode, String responseBody)