Class AuthenticationException

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

public class AuthenticationException extends OpenAIException
Exception thrown when authentication fails (HTTP 401).

Common causes:

  • Invalid or missing API key
  • Expired API key
  • Incorrect authentication header
See Also:
  • Constructor Details

    • AuthenticationException

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