GenerativeAIException


public sealed class GenerativeAIException extends Exception

既知の直接サブクラス
ConnectionException

接続中にエラーが発生しました。

DownloadException

ダウンロード中にエラーが発生しました。

InferenceException

推論中にエラーが発生しました。

PreparationException

準備中にエラーが発生しました。

TokenizationException

トークン化中にエラーが発生しました。

UnknownException

不明なエラーです。


GenerativeModel で発生するエラーの親クラス。

概要

ネストされた型

GenerativeAIException エラーコードのセット。

保護されたコンストラクタ

GenerativeAIException(
    @NonNull String message,
    Throwable cause,
    @GenerativeAIException.ErrorCode int errorCode
)

パブリック メソッド

final int

保護されたコンストラクタ

GenerativeAIException

protected GenerativeAIException(
    @NonNull String message,
    Throwable cause,
    @GenerativeAIException.ErrorCode int errorCode
)

パブリック メソッド

getErrorCode

public final int getErrorCode()