AS AgentScopeAPI 手册 / API Reference

ExecTimeoutException

public static class ExecTimeoutException extends SandboxException
源码Source io/agentscope/harness/agent/sandbox/SandboxException.java:274–287

Exec 超时异常,表示执行过程中的错误。位于 io.agentscope.harness.agent.sandbox 包,继承自 SandboxException。核心成员包括 ExecTimeoutException。

Thrown when a sandbox command times out.

构造器摘要Constructor Summary

构造器Constructor说明Description
public ExecTimeoutException(String command, int timeoutSeconds)
初始化 `ExecTimeoutException` 实例。
Creates an exec timeout exception.

构造器详情Constructor Detail

ExecTimeoutException

public ExecTimeoutException(String command, int timeoutSeconds)

初始化 ExecTimeoutException 实例。

Creates an exec timeout exception.

参数Parameters
名称Name类型Type说明Description
commandString命令(类型 `String`)。the command that timed out
timeoutSecondsint超时秒(类型 `int`)。the timeout that was exceeded
源码Source io/agentscope/harness/agent/sandbox/SandboxException.java:282–286

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