AS AgentScopeAPI 手册 / API Reference

HayStackApiException

public class HayStackApiException extends RuntimeException
源码Source io/agentscope/core/rag/integration/haystack/exception/HayStackApiException.java:21–78

Hay Stack API 异常,表示执行过程中的错误。位于 io.agentscope.core.rag.integration.haystack.exception 包,继承自 RuntimeException。核心成员包括 getStatusCode、getErrorCode、toString、HayStackApiException。

Exception thrown when HayStack API call fails.

构造器摘要Constructor Summary

构造器Constructor说明Description
public HayStackApiException(String message)
初始化 `HayStackApiException` 实例。
Creates a new instance.
public HayStackApiException(String message, int statusCode)
初始化 `HayStackApiException` 实例。
Creates a new instance.
public HayStackApiException(String message, int statusCode, String errorCode)
初始化 `HayStackApiException` 实例。
Creates a new instance.
public HayStackApiException(String message, Throwable cause)
初始化 `HayStackApiException` 实例。
Creates a new instance.
public HayStackApiException(String message, int statusCode, Throwable cause)
初始化 `HayStackApiException` 实例。
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

HayStackApiException

public HayStackApiException(String message)

初始化 HayStackApiException 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
源码Source io/agentscope/core/rag/integration/haystack/exception/HayStackApiException.java:27–31

HayStackApiException

public HayStackApiException(String message, int statusCode)

初始化 HayStackApiException 实例。

Creates a new instance.

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

HayStackApiException

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

初始化 HayStackApiException 实例。

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/haystack/exception/HayStackApiException.java:39–43

HayStackApiException

public HayStackApiException(String message, Throwable cause)

初始化 HayStackApiException 实例。

Creates a new instance.

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

HayStackApiException

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

初始化 HayStackApiException 实例。

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/haystack/exception/HayStackApiException.java:51–55

方法详情Method Detail

getStatusCode

public int getStatusCode()

获取 getStatusCode。

Returns the status code.

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

getErrorCode

public String getErrorCode()

获取 getErrorCode。

Returns the error code.

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

toString

public String toString()

返回 toString 结果。

Returns the to string.

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