AS AgentScopeAPI 手册 / API Reference

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
pathPath路径(类型 `Path`)。the workspace path that could not be started
causeThrowablecause(类型 `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.

返回Returns Path
返回路径。workspace path
源码Source io/agentscope/harness/agent/sandbox/SandboxException.java:182–184

继承成员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.