MIError

open class MIError

Class that provides extra info on where/what caused an error

Its fields (code, message, status, tag are public. Check the description of each of them for more info.

Constructors

Link copied to clipboard
open fun MIError(miErrorEnum: MIErrorEnum)
MiError constructor made from enum with standard message
Link copied to clipboard
Link copied to clipboard
open fun MIError(miErrorEnum: MIErrorEnum, status: Int)
MiError constructor made from enum with standard message and a custom status
Link copied to clipboard
open fun MIError(@MIError.MISDKErrorCode code: Int, status: Int)
Link copied to clipboard
open fun MIError(miErrorEnum: MIErrorEnum, @NonNull message: String)
Link copied to clipboard
open fun MIError(@MIError.MISDKErrorCode code: Int, @NonNull message: String)
Link copied to clipboard
open fun MIError(miErrorEnum: MIErrorEnum, message: String, status: Int)
Link copied to clipboard
open fun MIError(@MIError.MISDKErrorCode code: Int, @NonNull message: String, status: Int)
Link copied to clipboard
open fun MIError(miErrorEnum: MIErrorEnum, errors: List<MIError>)
Link copied to clipboard
open fun MIError(@MIError.MISDKErrorCode code: Int, @NonNull errors: List<MIError>)
Link copied to clipboard
open fun MIError(@NonNull miError: MIError)

Types

Link copied to clipboard
MapsIndoors error codes

Functions

Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Venue/building/floor data is not available when adding it to the location data
LocationDisplayRule.
Link copied to clipboard
Generic error for DataLoaders, when offline data is not found
Link copied to clipboard
Multiple errors, check the message
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val INVALID_API_KEY: Int = 100
Use this when calls to our backend (https://api.mapsindoors.com, etc.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Either a MISDKErrorCode code as a string, an exception message, etc.
Link copied to clipboard
val NETWORK_ERROR: Int = 10
Any of the network errors
Link copied to clipboard
val NO_AUTH_TOKEN: Int = 110
Link copied to clipboard
val NO_ERROR: Int = 0
No error object
Link copied to clipboard
val PARSE_ERROR: Int = 21
Any data parsing error in the data loaders
Error while parsing the distance matrix results
Link copied to clipboard
Link copied to clipboard
Any of the network errors
Link copied to clipboard
Device is off network and doesn't have offline routing data
Device is off network, has offline routing data, but cannot calculate a route
Device is off network, has offline routing data, but couldn't find an internal route
Link copied to clipboard
Route not Found (...
Link copied to clipboard
Error while parsing the route results
Link copied to clipboard
Any of the non network errors
Link copied to clipboard
Link copied to clipboard
open var status: Int
If the error is network related, this will keep the original response's HttpURLConnection status code
Link copied to clipboard
open var tag: Any
Any extra custom content goes in here
Link copied to clipboard
val UNKNOWN_ERROR: Int = 20
Any of the non network errors