AdInspectorError

public final class AdInspectorError extends AdError

Error information about why the ad inspector failed.

Nested Class Summary

@interface AdInspectorError.AdInspectorErrorCode Constants supported by AdInspectorError

Constant Summary

int ERROR_CODE_ALREADY_OPEN Ad inspector cannot be opened because it is already open.
int ERROR_CODE_FAILED_TO_LOAD Ad inspector failed to load.
int ERROR_CODE_INTERNAL_ERROR Ad inspector had an internal error.
int ERROR_CODE_NOT_IN_TEST_MODE Ad inspector cannot be opened because the device is not in test mode.

Inherited Constant Summary

com.google.android.gms.ads.AdError
String UNDEFINED_DOMAIN The undefined error domain.

Public Constructor Summary

AdInspectorError(int code, String message, String domain)
Creates an AdInspectorError.

Public Method Summary

int
getCode()
Gets the error's code.

Inherited Method Summary

com.google.android.gms.ads.AdError
AdError
getCause()
Gets the cause of this error or null if the cause is nonexistent or unknown.
int
getCode()
Gets the error's code.
String
getDomain()
Gets the domain of the error.
String
getMessage()
Gets the message describing the error.
String
toString()
Returns a log friendly string version of this object.
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Constants

public static final int ERROR_CODE_ALREADY_OPEN

Ad inspector cannot be opened because it is already open.

Constant Value: 3

public static final int ERROR_CODE_FAILED_TO_LOAD

Ad inspector failed to load.

Constant Value: 1

public static final int ERROR_CODE_INTERNAL_ERROR

Ad inspector had an internal error.

Constant Value: 0

public static final int ERROR_CODE_NOT_IN_TEST_MODE

Ad inspector cannot be opened because the device is not in test mode. See //developers.google.com/admob/android/test-ads#enable_test_devices for more information.

Constant Value: 2

Public Constructors

public AdInspectorError (int code, String message, String domain)

Creates an AdInspectorError.

Parameters
code the error code.
message a message detailing the error.
domain the error domain.

Public Methods

public int getCode ()

Gets the error's code.