InternalServerException
public class InternalServerException extends OpenAIException
源码Source
io/agentscope/extensions/model/openai/exception/InternalServerException.java:32–38内部服务端异常,表示执行过程中的错误。位于 io.agentscope.extensions.model.openai.exception 包,继承自 OpenAIException。核心成员包括 InternalServerException。
Exception thrown when the server encounters an internal error (HTTP 5xx).
This indicates a problem on OpenAI's side. Consider retrying the request after a brief wait.
Common status codes:
-
500 - Internal Server Error
-
502 - Bad Gateway
-
503 - Service Unavailable
-
504 - Gateway Timeout
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public InternalServerException(String message, int statusCode, String errorCode, String responseBody) | 初始化 `InternalServerException` 实例。 Creates a new instance. |
构造器详情Constructor Detail
InternalServerException
public InternalServerException(String message, int statusCode, String errorCode, String responseBody)
初始化 InternalServerException 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
statusCode | int | 状态 Code(类型 `int`)。The status code. |
errorCode | String | 错误 Code(类型 `String`)。The error code. |
responseBody | String | 响应正文(类型 `String`)。The response body. |
源码Source
io/agentscope/extensions/model/openai/exception/InternalServerException.java:34–37