AS AgentScopeAPI 手册 / API Reference

RAGFlowApiException

public class RAGFlowApiException extends RuntimeException
源码Source io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:23–80

RAG 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
messageString消息(类型 `String`)。The message.
源码Source io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:29–33

RAGFlowApiException

public RAGFlowApiException(String message, int statusCode)

初始化 RAGFlowApiException 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
statusCodeint状态 Code(类型 `int`)。The status code.
源码Source io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:35–39

RAGFlowApiException

public RAGFlowApiException(String message, int statusCode, String errorCode)

初始化 RAGFlowApiException 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
statusCodeint状态 Code(类型 `int`)。The status code.
errorCodeString错误 Code(类型 `String`)。The error code.
源码Source io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:41–45

RAGFlowApiException

public RAGFlowApiException(String message, Throwable cause)

初始化 RAGFlowApiException 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
causeThrowablecause(类型 `Throwable`)。The cause.
源码Source io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:47–51

RAGFlowApiException

public RAGFlowApiException(String message, int statusCode, Throwable cause)

初始化 RAGFlowApiException 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
statusCodeint状态 Code(类型 `int`)。The status code.
causeThrowablecause(类型 `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.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:59–61

getErrorCode

public String getErrorCode()

获取 getErrorCode。

Returns the error code.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:63–65

toString

public String toString()

返回 toString 结果。

Returns the to string.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/ragflow/exception/RAGFlowApiException.java:67–79
基于官方固定版本源码静态生成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.