GenerativeAIException.ErrorCode


@IntDef
public annotation GenerativeAIException.ErrorCode


The set of GenerativeAIException error codes.

Summary

Constants

static final int

Bad data for inputs.

static final int

Bad request for inputs.

static final int

AICore service binding is died.

static final int

Error during service binding.

static final int

The service is currently busy.

static final int

Inference cancelled.

static final int

Underlying inference engine encounters an error and fails to compute results.

static final int

IPC error.

static final int

AICore service requires Android system update to function properly.

static final int

Underlying inference engine is not available.

static final int

Download error.

static final int

AICore service returns null on binding.

static final int

Request encountered error during processing, and no response will be generated.

static final int

Request is too large to be processed by AICore.

static final int

The model failed to generate a proper response.

static final int

Response generated encountered error.

static final int

AICore service is disconnected.

static final int

The service encountered an error during processing.

static final int

Unknown failures.

Public constructors

Constants

BAD_DATA

public static final int BAD_DATA

Bad data for inputs.

BAD_REQUEST

public static final int BAD_REQUEST

Bad request for inputs.

BINDING_DIED

public static final int BINDING_DIED

AICore service binding is died.

BINDING_FAILURE

public static final int BINDING_FAILURE

Error during service binding.

BUSY

public static final int BUSY

The service is currently busy. Callers should retry with exponential backoff.

CANCELLED

public static final int CANCELLED

Inference cancelled.

COMPUTE_ERROR

public static final int COMPUTE_ERROR

Underlying inference engine encounters an error and fails to compute results.

IPC_ERROR

public static final int IPC_ERROR

IPC error.

NEEDS_SYSTEM_UPDATE

public static final int NEEDS_SYSTEM_UPDATE

AICore service requires Android system update to function properly.

NOT_AVAILABLE

public static final int NOT_AVAILABLE

Underlying inference engine is not available.

NOT_ENOUGH_DISK_SPACE

public static final int NOT_ENOUGH_DISK_SPACE

Download error.

NULL_BINDING

public static final int NULL_BINDING

AICore service returns null on binding.

REQUEST_PROCESSING_ERROR

public static final int REQUEST_PROCESSING_ERROR

Request encountered error during processing, and no response will be generated.

REQUEST_TOO_LARGE

public static final int REQUEST_TOO_LARGE

Request is too large to be processed by AICore.

RESPONSE_GENERATION_ERROR

public static final int RESPONSE_GENERATION_ERROR

The model failed to generate a proper response.

RESPONSE_PROCESSING_ERROR

public static final int RESPONSE_PROCESSING_ERROR

Response generated encountered error.

SERVICE_DISCONNECTED

public static final int SERVICE_DISCONNECTED

AICore service is disconnected.

SERVICE_PROCESSING_ERROR

public static final int SERVICE_PROCESSING_ERROR

The service encountered an error during processing.

UNKNOWN

public static final int UNKNOWN

Unknown failures.

Public constructors

ErrorCode

public ErrorCode()