GenerativeAIException.ErrorCode


@IntDef
annotation GenerativeAIException.ErrorCode


The set of GenerativeAIException error codes.

Summary

Constants

const Int

Bad data for inputs.

const Int

Bad request for inputs.

const Int

AICore service binding is died.

const Int

Error during service binding.

const Int

The service is currently busy.

const Int

Inference cancelled.

const Int

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

const Int

IPC error.

const Int

AICore service requires Android system update to function properly.

const Int

Underlying inference engine is not available.

const Int

Download error.

const Int

AICore service returns null on binding.

const Int

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

const Int

Request is too large to be processed by AICore.

const Int

The model failed to generate a proper response.

const Int

Response generated encountered error.

const Int

AICore service is disconnected.

const Int

The service encountered an error during processing.

const Int

Unknown failures.

Public constructors

Constants

BAD_DATA

const val BAD_DATA: Int

Bad data for inputs.

BAD_REQUEST

const val BAD_REQUEST: Int

Bad request for inputs.

BINDING_DIED

const val BINDING_DIED: Int

AICore service binding is died.

BINDING_FAILURE

const val BINDING_FAILURE: Int

Error during service binding.

BUSY

const val BUSY: Int

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

CANCELLED

const val CANCELLED: Int

Inference cancelled.

COMPUTE_ERROR

const val COMPUTE_ERROR: Int

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

IPC_ERROR

const val IPC_ERROR: Int

IPC error.

NEEDS_SYSTEM_UPDATE

const val NEEDS_SYSTEM_UPDATE: Int

AICore service requires Android system update to function properly.

NOT_AVAILABLE

const val NOT_AVAILABLE: Int

Underlying inference engine is not available.

NOT_ENOUGH_DISK_SPACE

const val NOT_ENOUGH_DISK_SPACE: Int

Download error.

NULL_BINDING

const val NULL_BINDING: Int

AICore service returns null on binding.

REQUEST_PROCESSING_ERROR

const val REQUEST_PROCESSING_ERROR: Int

Request encountered error during processing, and no response will be generated. Note that this may be due to the inference engine refusing to generate a response e.g. because of safety filtering triggering.

REQUEST_TOO_LARGE

const val REQUEST_TOO_LARGE: Int

Request is too large to be processed by AICore.

RESPONSE_GENERATION_ERROR

const val RESPONSE_GENERATION_ERROR: Int

The model failed to generate a proper response.

RESPONSE_PROCESSING_ERROR

const val RESPONSE_PROCESSING_ERROR: Int

Response generated encountered error. Note that this may be due to the inference engine refusing to generate a response e.g. because of safety filtering triggering.

SERVICE_DISCONNECTED

const val SERVICE_DISCONNECTED: Int

AICore service is disconnected.

SERVICE_PROCESSING_ERROR

const val SERVICE_PROCESSING_ERROR: Int

The service encountered an error during processing.

UNKNOWN

const val UNKNOWN: Int

Unknown failures.

Public constructors

ErrorCode

ErrorCode()