Stay organized with collections Save and categorize content based on your preferences.

firebase::gma::AdError

#include <types.h>

Information about why an ad operation failed.

Summary

Constructors and Destructors

AdError()
Default Constructor.
AdError(const AdError & ad_error)
Copy Constructor.
~AdError()
Destructor.

Public static attributes

kUndefinedDomain
const char *const
A domain string which represents an undefined error domain.

Public functions

GetCause() const
std::unique_ptr< AdError >
Retrieves an AdError which represents the cause of this error.
ToString() const
virtual const std::string &
Returns a log friendly string version of this object.
code() const
Gets the error's code.
domain() const
const std::string &
Gets the domain of the error.
message() const
const std::string &
Gets the message describing the error.
operator=(const AdError & obj)
Assignment operator.
response_info() const
const ResponseInfo &
Gets the ResponseInfo if an error occurred during a loadAd operation.

Public static attributes

kUndefinedDomain

const char *const kUndefinedDomain

A domain string which represents an undefined error domain.

The GMA SDK returns this domain for domain() method invocations when converting error information from legacy mediation adapter callbacks.

Public functions

AdError

 AdError()

Default Constructor.

AdError

 AdError(
  const AdError & ad_error
)

Copy Constructor.

GetCause

std::unique_ptr< AdError > GetCause() const 

Retrieves an AdError which represents the cause of this error.

Details
Returns
a pointer to an adError which represents the cause of this AdError. If there was no cause then nullptr is returned.

ToString

virtual const std::string & ToString() const 

Returns a log friendly string version of this object.

code

AdErrorCode code() const 

Gets the error's code.

domain

const std::string & domain() const 

Gets the domain of the error.

message

const std::string & message() const 

Gets the message describing the error.

operator=

AdError & operator=(
  const AdError & obj
)

Assignment operator.

response_info

const ResponseInfo & response_info() const 

Gets the ResponseInfo if an error occurred during a loadAd operation.

The ResponseInfo will have empty fields if this AdError does not represent an error stemming from a load ad operation.

~AdError

virtual  ~AdError()

Destructor.