LoadAdError

public final class LoadAdError extends AdError


広告読み込みオペレーションが失敗した理由に関するエラー情報。

概要

公開フィールド

final @Nullable ResponseInfo

パブリック コンストラクタ

LoadAdError(
    int code,
    @NonNull String message,
    @NonNull String domain,
    @Nullable AdError cause,
    @Nullable ResponseInfo responseInfo
)

LoadAdError を作成します。

パブリック メソッド

@Nullable ResponseInfo

エラーの ResponseInfo を取得します。

String

このオブジェクトのロギングに適した文字列バージョンを返します。

継承される定数

com.google.android.gms.ads.AdError から
static final String
UNDEFINED_DOMAIN = "undefined"

未定義のエラードメイン。

継承されるフィールド

com.google.android.gms.ads.AdError から
final @Nullable AdError
final int
final @NonNull String
final @NonNull String

継承されるメソッド

com.google.android.gms.ads.AdError から
@Nullable AdError

このエラーの原因を取得します。原因が存在しないか不明な場合は null を返します。

int

エラーコードを取得します。

@NonNull String

エラーのドメインを取得します。

@NonNull String

エラーを説明するメッセージを取得します。

公開フィールド

responseInfo

public final @Nullable ResponseInfo responseInfo

パブリック コンストラクタ

LoadAdError

public LoadAdError(
    int code,
    @NonNull String message,
    @NonNull String domain,
    @Nullable AdError cause,
    @Nullable ResponseInfo responseInfo
)

LoadAdError を作成します。

パラメータ
int code

エラーコード。

@NonNull String message

エラーの詳細を示すメッセージ。

@NonNull String domain

エラードメイン。

@Nullable AdError cause

このエラーの原因を返します。原因が存在しないか不明である場合は null を返します。

@Nullable ResponseInfo responseInfo

広告レスポンス情報。

パブリック メソッド

getResponseInfo

public @Nullable ResponseInfo getResponseInfo()

エラーの ResponseInfo を取得します。

toString

public String toString()

このオブジェクトのロギングに適した文字列バージョンを返します。