AdSlotLoadException

class AdSlotLoadException(slotName: String, adUnitId: String, errorCode: String, errorMessage: String) : Exception(source)

Non-fatal marker for an ad failure other than no fill or a network error.

Constructors

Link copied to clipboard
constructor(slotName: String, adUnitId: String, errorCode: String, errorMessage: String)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

Whether trying the same operation again can succeed.

Link copied to clipboard
open val message: String?

Functions

Link copied to clipboard
fun Throwable.toErrorMessage(fallback: UiText = GenericErrorText): UiMessage

This failure as an error UiMessage: toUiText with fallback.

Link copied to clipboard
fun Throwable.toFailed(fallback: UiText = GenericErrorText, retryable: Boolean = isRetryable): Loadable.Failed

This failure as the Loadable.Failed state of a screen's content: toUiText with fallback, and a retry when retryable.

Link copied to clipboard
fun Throwable.toUiText(fallback: UiText = GenericErrorText): UiText

The text a screen shows for this failure.