Class PermissionDeniedException
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.PermissionDeniedException
- All Implemented Interfaces:
io.agentscope.core.model.ModelHttpException,Serializable
Exception thrown when permission is denied (HTTP 403).
Common causes:
- API key lacks required permissions
- Resource access denied
- Organization restrictions
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionDeniedException(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
-
PermissionDeniedException
-