SandboxErrorCode
public enum SandboxErrorCode
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
执行EXEC NONZERO相关操作。
Command exited with a non-zero exit code.
io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:24EXEC_TIMEOUT
EXEC_TIMEOUT
执行EXEC 超时相关操作。
Command execution timed out.
io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:27WORKSPACE_START_ERROR
WORKSPACE_START_ERROR
执行工作区启动错误相关操作。
Failed to start the workspace store.
io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:30WORKSPACE_STOP_ERROR
WORKSPACE_STOP_ERROR
执行工作区停止错误相关操作。
Failed to stop/persist the workspace store.
io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:33WORKSPACE_ARCHIVE_READ_ERROR
WORKSPACE_ARCHIVE_READ_ERROR
执行工作区归档读取错误相关操作。
Failed to read or parse a workspace archive (tar).
io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:36WORKSPACE_ARCHIVE_WRITE_ERROR
WORKSPACE_ARCHIVE_WRITE_ERROR
执行工作区归档写入错误相关操作。
Failed to create a workspace archive (tar).
io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:39SNAPSHOT_PERSIST_ERROR
SNAPSHOT_PERSIST_ERROR
执行快照 PERSIST 错误相关操作。
Failed to persist a snapshot.
io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:42SNAPSHOT_RESTORE_ERROR
SNAPSHOT_RESTORE_ERROR
执行快照 RESTORE 错误相关操作。
Failed to restore a snapshot.
io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:45SNAPSHOT_NOT_RESTORABLE
SNAPSHOT_NOT_RESTORABLE
执行快照不 RESTORABLE相关操作。
Snapshot does not exist or is not restorable.
io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:48INVALID_MANIFEST_PATH
INVALID_MANIFEST_PATH
执行无效 MANIFEST 路径相关操作。
A manifest entry contains an invalid or unsafe path.
io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:51CONFIGURATION_ERROR
CONFIGURATION_ERROR
执行配置错误相关操作。
Invalid or missing sandbox configuration.
io/agentscope/harness/agent/sandbox/SandboxErrorCode.java:54