AdError

class AdError

Known direct subclasses
AdInspectorError

Error information about why the ad inspector failed.

LoadAdError

Error information about why an ad load operation failed.


Error information about why an ad operation failed.

Summary

Constants

const String!
UNDEFINED_DOMAIN = "undefined"

The undefined error domain.

Public constructors

AdError(code: Int, message: String, domain: String)

Creates an AdError.

AdError(code: Int, message: String, domain: String, cause: AdError?)

Creates an AdError with an underlying cause.

Public functions

String!

Returns a log friendly string version of this object.

Constants

UNDEFINED_DOMAIN

const val UNDEFINED_DOMAIN = "undefined": String!

The undefined error domain.

The Google Mobile Ads SDK returns this domain for getDomain when converting error information from legacy mediation adapter callbacks like onFailure to an AdError.

Public constructors

AdError

AdError(code: Int, message: String, domain: String)

Creates an AdError.

Parameters
code: Int

the error code.

message: String

a message detailing the error.

domain: String

the error domain.

AdError

AdError(code: Int, message: String, domain: String, cause: AdError?)

Creates an AdError with an underlying cause.

Parameters
code: Int

the error code.

message: String

a message detailing the error.

domain: String

the error domain.

cause: AdError?

the cause of this error.

Public functions

toString

fun toString(): String!

Returns a log friendly string version of this object.

Public properties

cause

val causeAdError?

code

val codeInt

domain

val domainString

message

val messageString