ExecException
public static class ExecException extends SandboxException
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:221–269Exec 异常,表示执行过程中的错误。位于 io.agentscope.harness.agent.sandbox 包,继承自 SandboxException。核心成员包括 getExitCode、getStdout、getStderr、ExecException。
Thrown when a sandbox command exits with a non-zero exit code.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ExecException(int exitCode, String stdout, String stderr) | 初始化 `ExecException` 实例。 Creates an exec exception. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public int getExitCode() | 获取 `getExitCode`。 Returns the process exit code. |
public String getStdout() | 获取 `getStdout`。 Returns captured standard output. |
public String getStderr() | 获取 `getStderr`。 Returns captured standard error. |
构造器详情Constructor Detail
ExecException
public ExecException(int exitCode, String stdout, String stderr)
初始化 ExecException 实例。
Creates an exec exception.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
exitCode | int | exit Code(类型 `int`)。the process exit code |
stdout | String | stdout(类型 `String`)。captured standard output |
stderr | String | stderr(类型 `String`)。captured standard error |
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:234–241方法详情Method Detail
getExitCode
public int getExitCode()
获取 getExitCode。
Returns the process exit code.
int返回数值结果。exit code
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:248–250getStdout
public String getStdout()
获取 getStdout。
Returns captured standard output.
String返回字符串结果。stdout
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:257–259getStderr
public String getStderr()
获取 getStderr。
Returns captured standard error.
String返回字符串结果。stderr
源码Source
io/agentscope/harness/agent/sandbox/SandboxException.java:266–268