JevException
public class JevException extends RuntimeException
源码Source
io/agentscope/extensions/judge/jev/JevException.java:20–71Jev 异常,表示执行过程中的错误。位于 io.agentscope.extensions.judge.jev 包,继承自 RuntimeException。核心成员包括 getStatusCode、getResponseBody、isRetryable、JevException。
Client, transport, validation, and API error for Jev System One calls.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public JevException(String message) | 初始化 `JevException` 实例。 Creates a new instance. |
public JevException(String message, Throwable cause) | 初始化 `JevException` 实例。 Creates a new instance. |
public JevException(String message, Integer statusCode, String responseBody, boolean retryable) | 初始化 `JevException` 实例。 Creates a new instance. |
public JevException(String message, Throwable cause, Integer statusCode, String responseBody, boolean retryable) | 初始化 `JevException` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Integer getStatusCode() | 获取 `getStatusCode`。 The HTTP status, or `null` when the request failed before a response was received. |
public String getResponseBody() | 原始 HTTP 错误正文,或`null`。 The raw HTTP error body, or `null`. |
public boolean isRetryable() | 判断是否 `isRetryable`。 Whether the configured retry policy may retry this error. |
构造器详情Constructor Detail
JevException
public JevException(String message)
初始化 JevException 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
源码Source
io/agentscope/extensions/judge/jev/JevException.java:26–28JevException
public JevException(String message, Throwable cause)
初始化 JevException 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
cause | Throwable | cause(类型 `Throwable`)。The cause. |
源码Source
io/agentscope/extensions/judge/jev/JevException.java:30–35JevException
public JevException(String message, Integer statusCode, String responseBody, boolean retryable)
初始化 JevException 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
statusCode | Integer | 状态 Code(类型 `Integer`)。The status code. |
responseBody | String | 响应正文(类型 `String`)。The response body. |
retryable | boolean | retryable(类型 `boolean`)。The retryable. |
源码Source
io/agentscope/extensions/judge/jev/JevException.java:37–43JevException
public JevException(String message, Throwable cause, Integer statusCode, String responseBody, boolean retryable)
初始化 JevException 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
cause | Throwable | cause(类型 `Throwable`)。The cause. |
statusCode | Integer | 状态 Code(类型 `Integer`)。The status code. |
responseBody | String | 响应正文(类型 `String`)。The response body. |
retryable | boolean | retryable(类型 `boolean`)。The retryable. |
源码Source
io/agentscope/extensions/judge/jev/JevException.java:45–55方法详情Method Detail
getStatusCode
public Integer getStatusCode()
获取 getStatusCode。
The HTTP status, or null when the request failed before a response was received.
Integer返回数值结果。Returns a numeric result.
源码Source
io/agentscope/extensions/judge/jev/JevException.java:58–60getResponseBody
public String getResponseBody()
原始 HTTP 错误正文,或null。
The raw HTTP error body, or null.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/extensions/judge/jev/JevException.java:63–65isRetryable
public boolean isRetryable()
判断是否 isRetryable。
Whether the configured retry policy may retry this error.
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/extensions/judge/jev/JevException.java:68–70