GeolocationError

open class GeolocationError : Error

Container to encapsulate all Geolocation errors, to ease passing around error code + error message in Geolocation Callbacks.

The complete list of geolocation errors is defined in : ErrorCode

Constructors

Link copied to clipboard
open fun GeolocationError(code: Int, @Nullable message: String)
Constructor to define a new Geolocation error.

Types

Link copied to clipboard
annotation class ErrorCode

Functions

Link copied to clipboard
open fun getCode(): Int
Get the error code.
Link copied to clipboard
open fun getMessage(): String
Get the description message for the error.