SandboxRuntimeException
public static class SandboxRuntimeException extends SandboxException
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:121–154沙箱运行时异常,表示执行过程中的错误。位于 io.agentscope.harness.agent.sandbox 包,继承自 SandboxException。核心成员包括 SandboxRuntimeException。
Thrown for general sandbox runtime failures not covered by a more specific subclass.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public SandboxRuntimeException(SandboxErrorCode errorCode, String message) | 初始化 `SandboxRuntimeException` 实例。 Creates a runtime exception with an error code and message. |
public SandboxRuntimeException(SandboxErrorCode errorCode, String message, Throwable cause) | 初始化 `SandboxRuntimeException` 实例。 Creates a runtime exception with an error code, message, and cause. |
public SandboxRuntimeException(String message, Throwable cause) | 初始化 `SandboxRuntimeException` 实例。 Creates a runtime exception with a message and cause. |
构造器详情Constructor Detail
SandboxRuntimeException
public SandboxRuntimeException(SandboxErrorCode errorCode, String message)
初始化 SandboxRuntimeException 实例。
Creates a runtime exception with an error code and message.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
errorCode | SandboxErrorCode | 错误 Code(类型 `SandboxErrorCode`)。the error code classifying the failure |
message | String | 消息(类型 `String`)。human-readable description |
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:129–131SandboxRuntimeException
public SandboxRuntimeException(SandboxErrorCode errorCode, String message, Throwable cause)
初始化 SandboxRuntimeException 实例。
Creates a runtime exception with an error code, message, and cause.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
errorCode | SandboxErrorCode | 错误 Code(类型 `SandboxErrorCode`)。the error code classifying the failure |
message | String | 消息(类型 `String`)。human-readable description |
cause | Throwable | cause(类型 `Throwable`)。the underlying cause |
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:140–143SandboxRuntimeException
public SandboxRuntimeException(String message, Throwable cause)
初始化 SandboxRuntimeException 实例。
Creates a runtime exception with a message and cause.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。human-readable description |
cause | Throwable | cause(类型 `Throwable`)。the underlying cause |
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:151–153