AguiException
public class AguiException extends RuntimeException
源码Source
io/agentscope/core/agui/AguiException.java:21–72AGUI 异常,表示执行过程中的错误。位于 io.agentscope.core.agui 包,继承自 RuntimeException。核心成员包括 AguiException。
Base exception for AG-UI related errors.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
AgentNotFoundException | 类class | 智能体未找到异常,表示执行过程中的错误。 Exception thrown when an agent is not found in the registry. |
EncodingException | 类class | Encoding 异常,表示执行过程中的错误。 Exception thrown when event encoding fails. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AguiException(String message) | 初始化 `AguiException` 实例。 Creates a new AguiException with the specified message. |
public AguiException(String message, Throwable cause) | 初始化 `AguiException` 实例。 Creates a new AguiException with the specified message and cause. |
构造器详情Constructor Detail
AguiException
public AguiException(String message)
初始化 AguiException 实例。
Creates a new AguiException with the specified message.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 错误消息。The error message |
源码Source
io/agentscope/core/agui/AguiException.java:28–30AguiException
public AguiException(String message, Throwable cause)
初始化 AguiException 实例。
Creates a new AguiException with the specified message and cause.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 错误消息。The error message |
cause | Throwable | cause(类型 `Throwable`)。The underlying cause |
源码Source
io/agentscope/core/agui/AguiException.java:38–40嵌套类详情Nested Class Detail
AgentNotFoundException
public static class AgentNotFoundException extends AguiException智能体未找到异常,表示执行过程中的错误。位于 io.agentscope.core.agui 包,继承自 AguiException。核心成员包括 AgentNotFoundException。
Exception thrown when an agent is not found in the registry.
EncodingException
public static class EncodingException extends AguiExceptionEncoding 异常,表示执行过程中的错误。位于 io.agentscope.core.agui 包,继承自 AguiException。核心成员包括 EncodingException。
Exception thrown when event encoding fails.