GenerativeAIException.ErrorCode


@IntDef
public annotation GenerativeAIException.ErrorCode


一组 GenerativeAIException 错误代码。

摘要

常量

static final int

输入数据有误。

static final int

输入请求有误。

static final int

AICore 服务绑定已终止。

static final int

服务绑定期间出错。

static final int

该服务目前正忙。

static final int

推理已取消。

static final int

底层推理引擎遇到错误,无法计算结果。

static final int

IPC 错误。

static final int

AICore 服务需要 Android 系统更新才能正常运行。

static final int

底层推理引擎不可用。

static final int

下载时出错。

static final int

AICore 服务在绑定时返回 null。

static final int

请求在处理过程中遇到错误,系统不会生成任何响应。

static final int

请求过大,AICore 无法处理。

static final int

模型未能生成合适的回答。

static final int

生成的回答遇到了错误。

static final int

AICore 服务已断开连接。

static final int

服务在处理过程中遇到了错误。

static final int

未知失败。

公共构造函数

常量

BAD_DATA

public static final int BAD_DATA

输入数据有误。

BAD_REQUEST

public static final int BAD_REQUEST

输入请求有误。

BINDING_DIED

public static final int BINDING_DIED

AICore 服务绑定已终止。

BINDING_FAILURE

public static final int BINDING_FAILURE

服务绑定期间出错。

忙碌

public static final int BUSY

该服务目前正忙。调用方应使用指数退避算法重试。

已取消

public static final int CANCELLED

推理已取消。

COMPUTE_ERROR

public static final int COMPUTE_ERROR

底层推理引擎遇到错误,无法计算结果。

IPC_ERROR

public static final int IPC_ERROR

IPC 错误。

NEEDS_SYSTEM_UPDATE

public static final int NEEDS_SYSTEM_UPDATE

AICore 服务需要 Android 系统更新才能正常运行。

NOT_AVAILABLE

public static final int NOT_AVAILABLE

底层推理引擎不可用。

NOT_ENOUGH_DISK_SPACE

public static final int NOT_ENOUGH_DISK_SPACE

下载时出错。

NULL_BINDING

public static final int NULL_BINDING

AICore 服务在绑定时返回 null。

REQUEST_PROCESSING_ERROR

public static final int REQUEST_PROCESSING_ERROR

请求在处理过程中遇到错误,系统不会生成任何响应。

REQUEST_TOO_LARGE

public static final int REQUEST_TOO_LARGE

请求过大,AICore 无法处理。

RESPONSE_GENERATION_ERROR

public static final int RESPONSE_GENERATION_ERROR

模型未能生成合适的回答。

RESPONSE_PROCESSING_ERROR

public static final int RESPONSE_PROCESSING_ERROR

生成的回答遇到了错误。

SERVICE_DISCONNECTED

public static final int SERVICE_DISCONNECTED

AICore 服务已断开连接。

SERVICE_PROCESSING_ERROR

public static final int SERVICE_PROCESSING_ERROR

服务在处理过程中遇到了错误。

未知

public static final int UNKNOWN

未知失败。

公共构造函数

ErrorCode

public ErrorCode()