RateLimitException
public class RateLimitException extends OpenAIException
源码Source
io/agentscope/extensions/model/openai/exception/RateLimitException.java:31–36速率限制异常,表示执行过程中的错误。位于 io.agentscope.extensions.model.openai.exception 包,继承自 OpenAIException。核心成员包括 RateLimitException。
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
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public RateLimitException(String message, String errorCode, String responseBody) | 初始化 `RateLimitException` 实例。 Creates a new instance. |
构造器详情Constructor Detail
RateLimitException
public RateLimitException(String message, String errorCode, String responseBody)
初始化 RateLimitException 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
errorCode | String | 错误 Code(类型 `String`)。The error code. |
responseBody | String | 响应正文(类型 `String`)。The response body. |
源码Source
io/agentscope/extensions/model/openai/exception/RateLimitException.java:33–35