JsonException
public class JsonException extends RuntimeException
源码Source
io/agentscope/core/util/JsonException.java:29–58JSON 异常,表示执行过程中的错误。位于 io.agentscope.core.util 包,继承自 RuntimeException。核心成员包括 JsonException。
Runtime exception for JSON processing errors.
This exception wraps underlying JSON processing exceptions (such as Jackson's JsonProcessingException) to provide a unified exception type for JSON operations across the framework.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public JsonException(String message) | 初始化 `JsonException` 实例。 Constructs a new JSON exception with the specified detail message. |
public JsonException(String message, Throwable cause) | 初始化 `JsonException` 实例。 Constructs a new JSON exception with the specified detail message and cause. |
public JsonException(Throwable cause) | 初始化 `JsonException` 实例。 Constructs a new JSON exception with the specified cause. |
构造器详情Constructor Detail
JsonException
public JsonException(String message)
初始化 JsonException 实例。
Constructs a new JSON exception with the specified detail message.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 详情消息。the detail message |
源码Source
io/agentscope/core/util/JsonException.java:36–38JsonException
public JsonException(String message, Throwable cause)
初始化 JsonException 实例。
Constructs a new JSON exception with the specified detail message and cause.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 详情消息。the detail message |
cause | Throwable | cause(类型 `Throwable`)。the cause of the exception |
源码Source
io/agentscope/core/util/JsonException.java:46–48JsonException
public JsonException(Throwable cause)
初始化 JsonException 实例。
Constructs a new JSON exception with the specified cause.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
cause | Throwable | cause(类型 `Throwable`)。the cause of the exception |
源码Source
io/agentscope/core/util/JsonException.java:55–57