LoadAdError

public final class LoadAdError 
extends AdError 

Error information about why an ad load operation failed.

Summary

Public fields

final @ Nullable ResponseInfo

Public constructors

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

Creates a LoadAdError .

Public methods

@ Nullable ResponseInfo

Gets the ResponseInfo of the error.

String

Returns a log friendly string version of this object.

Inherited Constants

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

The undefined error domain.

Inherited fields

Inherited methods

From com.google.android.gms.ads.AdError
@ Nullable AdError

Gets the cause of this error or null if the cause is nonexistent or unknown.

int
getCode ()

Gets the error's code.

@ NonNull String

Gets the domain of the error.

@ NonNull String

Gets the message describing the error.

Public fields

responseInfo

public final @ Nullable 
 ResponseInfo 
 responseInfo 

Public constructors

LoadAdError

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

Creates a LoadAdError .

Parameters
int code

the error code.

@ NonNull String  message

a message detailing the error.

@ NonNull String  domain

the error domain.

@ Nullable AdError  cause

the cause of this error or null if the cause is nonexistent or unknown.

@ Nullable ResponseInfo  responseInfo

ad response information.

Public methods

getResponseInfo

public @ Nullable 
 ResponseInfo 
 getResponseInfo 
()

Gets the ResponseInfo of the error.

toString

public  String 
 toString 
()

Returns a log friendly string version of this object.

Create a Mobile Website
View Site in Mobile | Classic
Share by: