AdError

sealed class AdError

The SDK error type.

Contains all errors types that may occur in the SDK with a short description. In addition, each error type may contain additional useful parameters.

Note: If you are a custom renderer developer and need to send a custom error to the application, you can use AdError.CustomRendererError.

Inheritors

Types

Link copied to clipboard
data object AdIsNotLoaded : AdError

The error is related to the inability to perform an action because the Advertisement is not loaded.

Link copied to clipboard

The error is related to the inability to perform an action because the Advertisement is in the loading state.

Link copied to clipboard
data object BannerNotFound : AdError

There are no banners matching specified targeting criteria.

Link copied to clipboard
data class CacheFindAction(val path: String, var url: String, var message: String) : AdError

The error is related to an attempt to find a file from the disc.

Link copied to clipboard
data class CacheOverflow(val dataSize: ULong, var cacheSize: ULong) : AdError

An attempt to write a file that is larger than the cache size.

Link copied to clipboard
data class CacheRemoveAction(val path: String, var message: String) : AdError

The error is related to an attempt to delete a file or folder from the disc.

Link copied to clipboard
data class CacheWriteAction(val path: String, var message: String) : AdError

The error is related to an attempt to write a file to a disc or create a folder.

Link copied to clipboard
data class ClientIssue(val statusCode: Int) : AdError

An error relating to the server response.

Link copied to clipboard
data object Configuration : AdError

The error is related to an attempt to work with AdService without configuration.

Link copied to clipboard
data class CustomRendererError(val message: String) : AdError

Custom renderer error.

Link copied to clipboard
data class Decoding(val exception: Exception) : AdError

Error related to data decoding.

Link copied to clipboard
data class HostConnectionIssue(val message: String) : AdError

An error related to the host connection issue.

Link copied to clipboard

The ad server responded with an invalid ContentType header field.

Link copied to clipboard
data class InvalidTargetURL(val url: String) : AdError

Validation error for the URL associated with the tap.

Link copied to clipboard
data object MalformedURL : AdError

An error related to the URL.

Link copied to clipboard
data class MismatchPlacementType(val rendererName: String, val contentUnit: String?, val learningTag: Map<String, String>?) : AdError

The error is caused by an incorrect match between the passed and received placement type.

Link copied to clipboard
data class RedirectProcessing(val message: String) : AdError

The error is related to the redirect process.

Link copied to clipboard
data class ServerIssue(val statusCode: Int) : AdError

An error relating to the server response.

Link copied to clipboard
data object TimedOut : AdError

An error related to the timed out request.

Link copied to clipboard
data class UnknownRenderer(val rendererName: String) : AdError

The renderer name received from the server is not registered.

Link copied to clipboard
data class UnknownStatusCode(val statusCode: Int) : AdError

An error relating to the server response.

Link copied to clipboard
data class UnspecifiedNetworkError(val exception: Exception) : AdError

An error related to network error which is not handled by the SDK.

Properties

Link copied to clipboard

Short error description.