AS AgentScopeAPI 手册 / API Reference

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
errorCodeSandboxErrorCode错误 Code(类型 `SandboxErrorCode`)。the error code classifying the failure
messageString消息(类型 `String`)。human-readable description
源码Source io/agentscope/harness/agent/sandbox/SandboxException.java:129–131

SandboxRuntimeException

public SandboxRuntimeException(SandboxErrorCode errorCode, String message, Throwable cause)

初始化 SandboxRuntimeException 实例。

Creates a runtime exception with an error code, message, and cause.

参数Parameters
名称Name类型Type说明Description
errorCodeSandboxErrorCode错误 Code(类型 `SandboxErrorCode`)。the error code classifying the failure
messageString消息(类型 `String`)。human-readable description
causeThrowablecause(类型 `Throwable`)。the underlying cause
源码Source io/agentscope/harness/agent/sandbox/SandboxException.java:140–143

SandboxRuntimeException

public SandboxRuntimeException(String message, Throwable cause)

初始化 SandboxRuntimeException 实例。

Creates a runtime exception with a message and cause.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。human-readable description
causeThrowablecause(类型 `Throwable`)。the underlying cause
源码Source io/agentscope/harness/agent/sandbox/SandboxException.java:151–153

继承成员Inherited Members

继承自Methods inherited from SandboxException
基于官方固定版本源码静态生成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.