MTError

sealed class MTError : Exception

Represents all the errors that can occur in the MapTiler SDK.

All methods within the SDK throw MTError.

Inheritors

Types

data object BridgeNotLoaded : MTError

Method execution halted. Bridge and/or Map are not loaded.

data class ExceptionError(val body: MTException) : MTError

Method execution failed with exception.

data class InvalidResultType(val description: String) : MTError

Method execution returned an invalid result.

data object MissingParent : MTError

Method execution failed due to missing parent entity.

data class Unknown(val description: String) : MTError

Method execution resulted in an unknown error.

data class UnsupportedReturnType(val description: String) : MTError

Method execution returned unsupported type.

Properties

open val cause: Throwable?
val code: Int

Numerical code of the exception.

open val message: String?

Explanation of the exception.