GenerativeAIException


sealed class GenerativeAIException : Exception

Classi di sottoclasse dirette note
ConnectionException

Errore durante la connessione.

DownloadException

Errore durante il download.

InferenceException

Errore durante l'inferenza.

PreparationException

Errore durante la preparazione.

TokenizationException

Errore durante la tokenizzazione.

UnknownException

Errore sconosciuto.


Classe principale per eventuali errori che si verificano in GenerativeModel.

Riepilogo

Tipi nidificati

L'insieme di codici di errore GenerativeAIException.

Costruttori protetti

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

Proprietà pubbliche

Int

Proprietà ereditate

Da kotlin.Throwable

Costruttori protetti

GenerativeAIException

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

Proprietà pubbliche

errorCode

val errorCodeInt