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()

このオブジェクトのログ用に読みやすい文字列バージョンを返します。