RAGFlowApiException
public class RAGFlowApiException extends RuntimeException
源码Source
io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:23–80RAG Flow API 异常,表示执行过程中的错误。位于 io.agentscope.core.rag.integration.ragflow.exception 包,继承自 RuntimeException。核心成员包括 getStatusCode、getErrorCode、toString、RAGFlowApiException。
Exception thrown when RAGFlow API call fails.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public RAGFlowApiException(String message) | 初始化 `RAGFlowApiException` 实例。 Creates a new instance. |
public RAGFlowApiException(String message, int statusCode) | 初始化 `RAGFlowApiException` 实例。 Creates a new instance. |
public RAGFlowApiException(String message, int statusCode, String errorCode) | 初始化 `RAGFlowApiException` 实例。 Creates a new instance. |
public RAGFlowApiException(String message, Throwable cause) | 初始化 `RAGFlowApiException` 实例。 Creates a new instance. |
public RAGFlowApiException(String message, int statusCode, Throwable cause) | 初始化 `RAGFlowApiException` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public int getStatusCode() | 获取 `getStatusCode`。 Returns the status code. |
public String getErrorCode() | 获取 `getErrorCode`。 Returns the error code. |
public String toString() | 返回 `toString` 结果。 Returns the to string. |
构造器详情Constructor Detail
RAGFlowApiException
public RAGFlowApiException(String message)
初始化 RAGFlowApiException 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
源码Source
io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:29–33RAGFlowApiException
public RAGFlowApiException(String message, int statusCode)
初始化 RAGFlowApiException 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
statusCode | int | 状态 Code(类型 `int`)。The status code. |
源码Source
io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:35–39RAGFlowApiException
public RAGFlowApiException(String message, int statusCode, String errorCode)
初始化 RAGFlowApiException 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
statusCode | int | 状态 Code(类型 `int`)。The status code. |
errorCode | String | 错误 Code(类型 `String`)。The error code. |
源码Source
io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:41–45RAGFlowApiException
public RAGFlowApiException(String message, Throwable cause)
初始化 RAGFlowApiException 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
cause | Throwable | cause(类型 `Throwable`)。The cause. |
源码Source
io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:47–51RAGFlowApiException
public RAGFlowApiException(String message, int statusCode, Throwable cause)
初始化 RAGFlowApiException 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
statusCode | int | 状态 Code(类型 `int`)。The status code. |
cause | Throwable | cause(类型 `Throwable`)。The cause. |
源码Source
io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:53–57方法详情Method Detail
getStatusCode
public int getStatusCode()
获取 getStatusCode。
Returns the status code.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:59–61getErrorCode
public String getErrorCode()
获取 getErrorCode。
Returns the error code.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:63–65toString
public String toString()
返回 toString 结果。
Returns the to string.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:67–79