LoadAdError

public final class LoadAdError


Error information about why an ad load operation failed.

Summary

Nested types

public enum LoadAdError.ErrorCode extends Enum

Public constructors

LoadAdError(
    @NonNull LoadAdError.ErrorCode code,
    @NonNull String message,
    ResponseInfo responseInfo
)

Public methods

@NonNull LoadAdError.ErrorCode

The error code.

@NonNull String

A message detailing the error.

final ResponseInfo

Information about the ad response, if there was one.

Public constructors

LoadAdError

public LoadAdError(
    @NonNull LoadAdError.ErrorCode code,
    @NonNull String message,
    ResponseInfo responseInfo
)
Parameters
@NonNull LoadAdError.ErrorCode code

The error code.

@NonNull String message

A message detailing the error.

ResponseInfo responseInfo

Information about the ad response, if there was one.

Public methods

getCode

public @NonNull LoadAdError.ErrorCode getCode()

The error code.

getMessage

public @NonNull String getMessage()

A message detailing the error.

getResponseInfo

public final ResponseInfo getResponseInfo()

Information about the ad response, if there was one.