Types

data class BadResponse(val statusCode: Int) : MTOfflineError

The server returned a bad HTTP response with the given status code.

The offline download or operation was cancelled.

data class ContentMismatch(val expected: String, val actual: String) : MTOfflineError

The received content format or type does not match the expected format.

data class DecodingError(val cause: Throwable) : MTOfflineError

An error occurred while decoding JSON.

data class DownloadFailed(val cause: Throwable) : MTOfflineError

A download operation failed.

data class ExceedsMaximumTileCount(val limit: Int, val requested: Int) : MTOfflineError

The requested offline region exceeds the maximum allowed tile count or size.

data class FileSystemError(val storageError: MTOfflineStorageError) : MTOfflineError

A file system error occurred while attempting to save or read offline data.

The device does not have enough available storage space to complete the download.

The provided bounding box is invalid.

The offline pack is invalid or corrupted.

The requested offline region resulted in no tiles.

data class InvalidURL(val url: String) : MTOfflineError

The provided URL was invalid.

The JSON data is malformed or invalid.

The API key is missing.

data class MissingKey(val key: String) : MTOfflineError

A required key is missing in style.json or TileJSON.

data class NetworkError(val cause: Throwable) : MTOfflineError

A general network connectivity issue occurred.

The server returned a 204 No Content response, which is unexpected for this resource.

data class ReversedZoomLevels(val minZoom: Double, val maxZoom: Double) : MTOfflineError

The minimum zoom level is greater than the maximum zoom level.

Properties

open val cause: Throwable?
open val message: String?