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

傳回此物件的日誌友善字串版本。