Class RateLimitException
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.RateLimitException
- All Implemented Interfaces:
io.agentscope.core.model.ModelHttpException,Serializable
Exception thrown when rate limits are exceeded (HTTP 429).
This exception is thrown when you've exceeded your assigned rate limits. Consider implementing exponential backoff retry logic.
Common causes:
- Too many requests per minute
- Token quota exceeded
- Concurrent request limit reached
- See Also:
-
Constructor Summary
Constructors -
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
-
RateLimitException
-