AS AgentScopeAPI 手册 / API Reference

JsonException

public class JsonException extends RuntimeException
源码Source io/agentscope/core/util/JsonException.java:29–58

JSON 异常,表示执行过程中的错误。位于 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
messageString详情消息。the detail message
源码Source io/agentscope/core/util/JsonException.java:36–38

JsonException

public JsonException(String message, Throwable cause)

初始化 JsonException 实例。

Constructs a new JSON exception with the specified detail message and cause.

参数Parameters
名称Name类型Type说明Description
messageString详情消息。the detail message
causeThrowablecause(类型 `Throwable`)。the cause of the exception
源码Source io/agentscope/core/util/JsonException.java:46–48

JsonException

public JsonException(Throwable cause)

初始化 JsonException 实例。

Constructs a new JSON exception with the specified cause.

参数Parameters
名称Name类型Type说明Description
causeThrowablecause(类型 `Throwable`)。the cause of the exception
源码Source io/agentscope/core/util/JsonException.java:55–57
基于官方固定版本源码静态生成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.