GenerativeAIException


sealed class GenerativeAIException : Exception

Known direct subclasses
ConnectionException

Error during connection.

DownloadException

Error during download.

InferenceException

Error during inference.

PreparationException

Error during preparation.

TokenizationException

Error during tokenization.

UnknownException

Unknown Error.


Parent class for any errors that occur from GenerativeModel.

Summary

Nested types

The set of GenerativeAIException error codes.

Protected constructors

GenerativeAIException(
    message: String,
    cause: Throwable?,
    @GenerativeAIException.ErrorCode errorCode: Int
)

Public properties

Int

Inherited properties

From kotlin.Throwable

Protected constructors

GenerativeAIException

protected GenerativeAIException(
    message: String,
    cause: Throwable? = null,
    @GenerativeAIException.ErrorCode errorCode: Int
)

Public properties

errorCode

val errorCodeInt