ReaderException
public class ReaderException extends Exception
源码Source
io/agentscope/core/rag/exception/ReaderException.java:24–44读取器异常,表示执行过程中的错误。位于 io.agentscope.core.rag.exception 包,继承自 Exception。核心成员包括 ReaderException。
Exception thrown when document reading fails.
This exception is used to wrap errors from document reading operations, providing context about the reader and input that failed.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ReaderException(String message) | 初始化 `ReaderException` 实例。 Creates a new ReaderException with the given message. |
public ReaderException(String message, Throwable cause) | 初始化 `ReaderException` 实例。 Creates a new ReaderException with the given message and cause. |
构造器详情Constructor Detail
ReaderException
public ReaderException(String message)
初始化 ReaderException 实例。
Creates a new ReaderException with the given message.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 错误消息。the error message |
源码Source
io/agentscope/core/rag/exception/ReaderException.java:31–33ReaderException
public ReaderException(String message, Throwable cause)
初始化 ReaderException 实例。
Creates a new ReaderException with the given message and cause.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 错误消息。the error message |
cause | Throwable | cause(类型 `Throwable`)。the cause of this exception |
源码Source
io/agentscope/core/rag/exception/ReaderException.java:41–43