ModelHttpException
public interface ModelHttpException
源码Source
io/agentscope/core/model/ModelHttpException.java:24–44定义模型 HTTP 异常契约的接口。位于 io.agentscope.core.model 包。核心成员包括 getStatusCode、isRetryableHttpStatus。
Exception contract for model providers that can expose an HTTP status code.
This keeps retry classification provider-neutral while allowing extension modules to preserve provider-specific exception types.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Integer getStatusCode() | 获取 `getStatusCode`。 Returns the HTTP status code associated with the model failure. |
default public boolean isRetryableHttpStatus()default | 判断是否 `isRetryableHttpStatus`。 Returns whether this HTTP status is retryable by default. |
方法详情Method Detail
getStatusCode
public Integer getStatusCode()
获取 getStatusCode。
Returns the HTTP status code associated with the model failure.
Integer返回数值结果。HTTP status code, or null when no status code is available
源码Source
io/agentscope/core/model/ModelHttpException.java:31isRetryableHttpStatus
default public boolean isRetryableHttpStatus()
default
判断是否 isRetryableHttpStatus。
Returns whether this HTTP status is retryable by default.
boolean返回布尔值,表示判断结果。true if the status code should be retried
源码Source
io/agentscope/core/model/ModelHttpException.java:40–43