WorkspaceStartException
public static class WorkspaceStartException extends SandboxException
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:159–185工作区启动异常,表示执行过程中的错误。位于 io.agentscope.harness.agent.sandbox 包,继承自 SandboxException。核心成员包括 getPath、WorkspaceStartException。
Thrown when the workspace backend fails to start.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public WorkspaceStartException(Path path, Throwable cause) | 初始化 `WorkspaceStartException` 实例。 Creates a workspace-start exception. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Path getPath() | 获取路径。 Returns the workspace path that failed to start. |
构造器详情Constructor Detail
WorkspaceStartException
public WorkspaceStartException(Path path, Throwable cause)
初始化 WorkspaceStartException 实例。
Creates a workspace-start exception.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
path | Path | 路径(类型 `Path`)。the workspace path that could not be started |
cause | Throwable | cause(类型 `Throwable`)。the underlying cause |
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:169–175方法详情Method Detail
getPath
public Path getPath()
获取路径。
Returns the workspace path that failed to start.
Path返回路径。workspace path
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:182–184