AS AgentScopeAPI 手册 / API Reference

SandboxErrorCode

public enum SandboxErrorCode
源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:21–55

定义沙箱错误 Code相关取值的枚举。位于 io.agentscope.harness.agent.sandbox 包。核心成员包括 EXEC_NONZERO、EXEC_TIMEOUT、WORKSPACE_START_ERROR、WORKSPACE_STOP_ERROR、WORKSPACE_ARCHIVE_READ_ERROR、WORKSPACE_ARCHIVE_WRITE_ERROR。

Error codes for sandbox operations, used in SandboxException and its subclasses.

枚举常量摘要Enum Constant Summary

常量Constant说明Description
EXEC_NONZERO
执行EXEC NONZERO相关操作。
Command exited with a non-zero exit code.
EXEC_TIMEOUT
执行EXEC 超时相关操作。
Command execution timed out.
WORKSPACE_START_ERROR
执行工作区启动错误相关操作。
Failed to start the workspace store.
WORKSPACE_STOP_ERROR
执行工作区停止错误相关操作。
Failed to stop/persist the workspace store.
WORKSPACE_ARCHIVE_READ_ERROR
执行工作区归档读取错误相关操作。
Failed to read or parse a workspace archive (tar).
WORKSPACE_ARCHIVE_WRITE_ERROR
执行工作区归档写入错误相关操作。
Failed to create a workspace archive (tar).
SNAPSHOT_PERSIST_ERROR
执行快照 PERSIST 错误相关操作。
Failed to persist a snapshot.
SNAPSHOT_RESTORE_ERROR
执行快照 RESTORE 错误相关操作。
Failed to restore a snapshot.
SNAPSHOT_NOT_RESTORABLE
执行快照不 RESTORABLE相关操作。
Snapshot does not exist or is not restorable.
INVALID_MANIFEST_PATH
执行无效 MANIFEST 路径相关操作。
A manifest entry contains an invalid or unsafe path.
CONFIGURATION_ERROR
执行配置错误相关操作。
Invalid or missing sandbox configuration.

枚举常量详情Enum Constant Detail

EXEC_NONZERO

EXEC_NONZERO
staticfinal

执行EXEC NONZERO相关操作。

Command exited with a non-zero exit code.

源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:24

EXEC_TIMEOUT

EXEC_TIMEOUT
staticfinal

执行EXEC 超时相关操作。

Command execution timed out.

源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:27

WORKSPACE_START_ERROR

WORKSPACE_START_ERROR
staticfinal

执行工作区启动错误相关操作。

Failed to start the workspace store.

源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:30

WORKSPACE_STOP_ERROR

WORKSPACE_STOP_ERROR
staticfinal

执行工作区停止错误相关操作。

Failed to stop/persist the workspace store.

源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:33

WORKSPACE_ARCHIVE_READ_ERROR

WORKSPACE_ARCHIVE_READ_ERROR
staticfinal

执行工作区归档读取错误相关操作。

Failed to read or parse a workspace archive (tar).

源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:36

WORKSPACE_ARCHIVE_WRITE_ERROR

WORKSPACE_ARCHIVE_WRITE_ERROR
staticfinal

执行工作区归档写入错误相关操作。

Failed to create a workspace archive (tar).

源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:39

SNAPSHOT_PERSIST_ERROR

SNAPSHOT_PERSIST_ERROR
staticfinal

执行快照 PERSIST 错误相关操作。

Failed to persist a snapshot.

源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:42

SNAPSHOT_RESTORE_ERROR

SNAPSHOT_RESTORE_ERROR
staticfinal

执行快照 RESTORE 错误相关操作。

Failed to restore a snapshot.

源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:45

SNAPSHOT_NOT_RESTORABLE

SNAPSHOT_NOT_RESTORABLE
staticfinal

执行快照不 RESTORABLE相关操作。

Snapshot does not exist or is not restorable.

源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:48

INVALID_MANIFEST_PATH

INVALID_MANIFEST_PATH
staticfinal

执行无效 MANIFEST 路径相关操作。

A manifest entry contains an invalid or unsafe path.

源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:51

CONFIGURATION_ERROR

CONFIGURATION_ERROR
staticfinal

执行配置错误相关操作。

Invalid or missing sandbox configuration.

源码Source io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:54
基于官方固定版本源码静态生成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.