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

返回此对象的日志友好型字符串版本。