AS AgentScopeAPI 手册 / API Reference

JevException

public class JevException extends RuntimeException
源码Source io/agentscope/extensions/judge/jev/JevException.java:20–71

Jev 异常,表示执行过程中的错误。位于 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
messageString消息(类型 `String`)。The message.
源码Source io/agentscope/extensions/judge/jev/JevException.java:26–28

JevException

public JevException(String message, Throwable cause)

初始化 JevException 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
causeThrowablecause(类型 `Throwable`)。The cause.
源码Source io/agentscope/extensions/judge/jev/JevException.java:30–35

JevException

public JevException(String message, Integer statusCode, String responseBody, boolean retryable)

初始化 JevException 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
statusCodeInteger状态 Code(类型 `Integer`)。The status code.
responseBodyString响应正文(类型 `String`)。The response body.
retryablebooleanretryable(类型 `boolean`)。The retryable.
源码Source io/agentscope/extensions/judge/jev/JevException.java:37–43

JevException

public JevException(String message, Throwable cause, Integer statusCode, String responseBody, boolean retryable)

初始化 JevException 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
causeThrowablecause(类型 `Throwable`)。The cause.
statusCodeInteger状态 Code(类型 `Integer`)。The status code.
responseBodyString响应正文(类型 `String`)。The response body.
retryablebooleanretryable(类型 `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.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/judge/jev/JevException.java:58–60

getResponseBody

public String getResponseBody()

原始 HTTP 错误正文,或null。

The raw HTTP error body, or null.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/judge/jev/JevException.java:63–65

isRetryable

public boolean isRetryable()

判断是否 isRetryable。

Whether the configured retry policy may retry this error.

返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/extensions/judge/jev/JevException.java:68–70
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.