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_DATAInt

Bad data for inputs.

BAD_REQUEST

const val BAD_REQUESTInt

Bad request for inputs.

BINDING_DIED

const val BINDING_DIEDInt

AICore service binding is died.

BINDING_FAILURE

const val BINDING_FAILUREInt

Error during service binding.

BUSY

const val BUSYInt

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

CANCELLED

const val CANCELLEDInt

Inference cancelled.

COMPUTE_ERROR

const val COMPUTE_ERRORInt

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

IPC_ERROR

const val IPC_ERRORInt

IPC error.

NEEDS_SYSTEM_UPDATE

const val NEEDS_SYSTEM_UPDATEInt

AICore service requires Android system update to function properly.

NOT_AVAILABLE

const val NOT_AVAILABLEInt

Underlying inference engine is not available.

NOT_ENOUGH_DISK_SPACE

const val NOT_ENOUGH_DISK_SPACEInt

Download error.

NULL_BINDING

const val NULL_BINDINGInt

AICore service returns null on binding.

REQUEST_PROCESSING_ERROR

const val REQUEST_PROCESSING_ERRORInt

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

REQUEST_TOO_LARGE

const val REQUEST_TOO_LARGEInt

Request is too large to be processed by AICore.

RESPONSE_GENERATION_ERROR

const val RESPONSE_GENERATION_ERRORInt

The model failed to generate a proper response.

RESPONSE_PROCESSING_ERROR

const val RESPONSE_PROCESSING_ERRORInt

Response generated encountered error.

SERVICE_DISCONNECTED

const val SERVICE_DISCONNECTEDInt

AICore service is disconnected.

SERVICE_PROCESSING_ERROR

const val SERVICE_PROCESSING_ERRORInt

The service encountered an error during processing.

UNKNOWN

const val UNKNOWNInt

Unknown failures.

Public constructors

ErrorCode

ErrorCode()