HayStackApiException
public class HayStackApiException extends RuntimeException
源码Source
io/agentscope/core/rag/integration/haystack/exception/HayStackApiException.java:21–78Hay 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 |
|---|---|---|
message | String | 消息(类型 `String`)。The message. |
源码Source
io/agentscope/core/rag/integration/haystack/exception/HayStackApiException.java:27–31HayStackApiException
public HayStackApiException(String message, int statusCode)
初始化 HayStackApiException 实例。
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/haystack/exception/HayStackApiException.java:33–37HayStackApiException
public HayStackApiException(String message, int statusCode, String errorCode)
初始化 HayStackApiException 实例。
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/haystack/exception/HayStackApiException.java:39–43HayStackApiException
public HayStackApiException(String message, Throwable cause)
初始化 HayStackApiException 实例。
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/haystack/exception/HayStackApiException.java:45–49HayStackApiException
public HayStackApiException(String message, int statusCode, Throwable cause)
初始化 HayStackApiException 实例。
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/haystack/exception/HayStackApiException.java:51–55方法详情Method Detail
getStatusCode
public int getStatusCode()
获取 getStatusCode。
Returns the status code.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/core/rag/integration/haystack/exception/HayStackApiException.java:57–59getErrorCode
public String getErrorCode()
获取 getErrorCode。
Returns the error code.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/rag/integration/haystack/exception/HayStackApiException.java:61–63toString
public String toString()
返回 toString 结果。
Returns the to string.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/rag/integration/haystack/exception/HayStackApiException.java:65–77