Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.agentscope.extensions.model.openai.exception.OpenAIException
io.agentscope.extensions.model.openai.exception.AuthenticationException
- All Implemented Interfaces:
io.agentscope.core.model.ModelHttpException,Serializable
Exception thrown when authentication fails (HTTP 401).
Common causes:
- Invalid or missing API key
- Expired API key
- Incorrect authentication header
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationException(String message, String errorCode, String responseBody) -
Method Summary
Methods inherited from class io.agentscope.extensions.model.openai.exception.OpenAIException
create, getErrorCode, getResponseBody, getStatusCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.agentscope.core.model.ModelHttpException
isRetryableHttpStatus
-
Constructor Details
-
AuthenticationException
-