AS AgentScopeAPI 手册 / API Reference

WorkspaceStopException

public static class WorkspaceStopException extends SandboxException
源码Source io/agentscope/harness/agent/sandbox/SandboxException.java:190–216

工作区停止异常,表示执行过程中的错误。位于 io.agentscope.harness.agent.sandbox 包,继承自 SandboxException。核心成员包括 getPath、WorkspaceStopException。

Thrown when the workspace backend fails to stop.

构造器摘要Constructor Summary

构造器Constructor说明Description
public WorkspaceStopException(Path path, Throwable cause)
初始化 `WorkspaceStopException` 实例。
Creates a workspace-stop exception.

方法摘要Method Summary

方法Method说明Description
public Path getPath()
获取路径。
Returns the workspace path that failed to stop.

构造器详情Constructor Detail

WorkspaceStopException

public WorkspaceStopException(Path path, Throwable cause)

初始化 WorkspaceStopException 实例。

Creates a workspace-stop exception.

参数Parameters
名称Name类型Type说明Description
pathPath路径(类型 `Path`)。the workspace path that could not be stopped
causeThrowablecause(类型 `Throwable`)。the underlying cause
源码Source io/agentscope/harness/agent/sandbox/SandboxException.java:200–206

方法详情Method Detail

getPath

public Path getPath()

获取路径。

Returns the workspace path that failed to stop.

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

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