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.

Author

Jose J Varó - Copyright © 2018 MapsPeople A/S. All rights reserved.

Constructors

Link copied to clipboard
open fun MIError(miErrorEnum: MIErrorEnum)
MiError constructor made from enum with standard message
Link copied to clipboard
open fun MIError(@MIError.MISDKErrorCode code: Int)
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, 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
annotation class MISDKErrorCode
MapsIndoors error codes

Functions

Link copied to clipboard
open fun toString(): String

Properties

Link copied to clipboard
val AUTHENTICATION_FAILED: Int
Link copied to clipboard
val BOOKING_SERVICE_BAD_REQUEST_ERROR: Int
Link copied to clipboard
val BOOKING_SERVICE_DATA_ERROR: Int
Link copied to clipboard
val BOOKING_SERVICE_NETWORK_ERROR: Int
Link copied to clipboard
open val code: Int
Link copied to clipboard
val DATALOADER_APPCONFIG_NETWORK_ERROR: Int
val DATALOADER_APPCONFIG_OFFLINE_DATA_NOT_FOUND: Int
Link copied to clipboard
val DATALOADER_APPCONFIG_UNKNOWN_ERROR: Int
Link copied to clipboard
val DATALOADER_BUILDINGS_NETWORK_ERROR: Int
val DATALOADER_BUILDINGS_OFFLINE_DATA_NOT_FOUND: Int
Link copied to clipboard
val DATALOADER_CATEGORIES_NETWORK_ERROR: Int
val DATALOADER_CATEGORIES_OFFLINE_DATA_NOT_FOUND: Int
Venue/building/floor data is not available when adding it to the location data
Link copied to clipboard
val DATALOADER_GATEWAY_NETWORK_ERROR: Int
Link copied to clipboard
val DATALOADER_GRAPHS_NETWORK_ERROR: Int
Link copied to clipboard
val DATALOADER_GRAPHS_OFFLINE_DATA_NOT_FOUND: Int
Link copied to clipboard
val DATALOADER_LOCATION_DATA_SOURCES_ERROR: Int
val DATALOADER_LOCATIONS_ILOAD_DATA_NOT_FOUND: Int
Link copied to clipboard
val DATALOADER_LOCATIONS_ILOAD_PARSE_ERROR: Int
Link copied to clipboard
val DATALOADER_LOCATIONS_ILOAD_UNKNOWN_ERROR: Int
Link copied to clipboard
val DATALOADER_LOCATIONS_NETWORK_ERROR: Int
val DATALOADER_LOCATIONS_OFFLINE_DATA_NOT_FOUND: Int
Link copied to clipboard
val DATALOADER_LOCDISPRULE_ICONLOAD_ERROR: Int
val DATALOADER_LOCDISPRULE_ICONLOAD_NOURL_ERROR: Int
LocationDisplayRule.
Link copied to clipboard
val DATALOADER_OFFLINE_DATA_NOT_FOUND: Int
Generic error for DataLoaders, when offline data is not found
Link copied to clipboard
val DATALOADER_PUSH_MESSAGES_NETWORK_ERROR: Int
val DATALOADER_PUSH_MESSAGES_NO_NETWORK_ERROR: Int
Link copied to clipboard
val DATALOADER_PUSH_MESSAGES_NOT_MODIFIED: Int
Link copied to clipboard
val DATALOADER_PUSH_MESSAGES_UNKOWN_ERROR: Int
Link copied to clipboard
val DATALOADER_ROUTELAYER_NETWORK_ERROR: Int
val DATALOADER_ROUTELAYER_OFFLINE_DATA_NOT_FOUND: Int
Link copied to clipboard
val DATALOADER_SOLUTION_NETWORK_ERROR: Int
val DATALOADER_SOLUTION_OFFLINE_DATA_NOT_FOUND: Int
Link copied to clipboard
val DATALOADER_SOLUTION_UNKNOWN_ERROR: Int
Link copied to clipboard
val DATALOADER_SYNC_MULTI: Int
Multiple errors, check the message
Link copied to clipboard
val DATALOADER_USER_ROLES_NETWORK_ERROR: Int
val DATALOADER_USER_ROLES_OFFLINE_DATA_NOT_FOUND: Int
Link copied to clipboard
val DATALOADER_VENUES_NETWORK_ERROR: Int
Link copied to clipboard
val DATALOADER_VENUES_OFFLINE_DATA_NOT_FOUND: Int
Link copied to clipboard
val FLOORTILES_CHECK_FOR_UPDATES_PARSE_ERROR: Int
Link copied to clipboard
val FLOORTILES_ERROR_1: Int
Link copied to clipboard
val FLOORTILES_ERROR_2: Int
Link copied to clipboard
val FLOORTILES_ERROR_4: Int
Link copied to clipboard
val FLOORTILES_EXTRACT_ABORTED: Int
Link copied to clipboard
val FLOORTILES_EXTRACT_CANCELED: Int
Link copied to clipboard
val FLOORTILES_HTTP_ERROR: Int
Link copied to clipboard
val FLOORTILES_HTTP_NOT_MODIFIED: Int
Link copied to clipboard
val HTTP_CLIENT_ERROR_CODE: Int
Link copied to clipboard
val HTTP_SERVER_ERROR_CODE: Int
Link copied to clipboard
val HTTP_UNHANDLED_CODE: Int
Link copied to clipboard
val IMAGEPROVIDER_LOADER_NO_RESULT_ERROR: Int
Link copied to clipboard
val IMAGEPROVIDER_MISSING_BITMAP_ERROR: Int
Link copied to clipboard
val IMAGEPROVIDER_UNKNOWN_ERROR: Int
Link copied to clipboard
val INVALID_API_KEY: Int
Use this when calls to our backend (https://api.mapsindoors.com, etc.
Link copied to clipboard
val LIVEDATA_CONNECTION_FAILED: Int
Link copied to clipboard
val LIVEDATA_CONNECTION_LOST: Int
Link copied to clipboard
val LIVEDATA_NOT_MODIFIED: Int
Link copied to clipboard
val LIVEDATA_STATE_NETWORK_FAILURE: Int
Link copied to clipboard
val LIVEDATA_SUBSCRIPTION_FAILED: Int
Link copied to clipboard
val LIVEDATA_UNSUBSCRIPTION_FAILED: Int
Link copied to clipboard
@NonNull
open val message: String
Either a MISDKErrorCode code as a string, an exception message, etc.
Link copied to clipboard
val NETWORK_ERROR: Int
Any of the network errors
Link copied to clipboard
val NO_AUTH_TOKEN: Int
Link copied to clipboard
val NO_ERROR: MIError
No error object
Link copied to clipboard
val PARSE_ERROR: Int
Any data parsing error in the data loaders
Link copied to clipboard
val ROUTING_DISTANCE_MATRIX_RESPONSE_ERROR: Int
val ROUTING_DISTANCE_MATRIX_RESPONSE_PARSE_ERROR: Int
Error while parsing the distance matrix results
val ROUTING_EITHER_ORIGIN_OR_DESTINATION_IS_NULL: Int
Link copied to clipboard
val ROUTING_ENTRY_POINTS_ERROR: Int
Link copied to clipboard
val ROUTING_NETWORK_ERROR: Int
Any of the network errors
Link copied to clipboard
val ROUTING_OFF_NETWORK_AND_NO_OFFLINE_DATA: Int
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
val ROUTING_ROUTE_NOT_FOUND: Int
Route not Found (...
Link copied to clipboard
val ROUTING_ROUTE_RESULT_PARSE_ERROR: Int
Error while parsing the route results
Link copied to clipboard
val ROUTING_UNKNOWN_ERROR: Int
Any of the non network errors
Link copied to clipboard
open val status: Int
If the error is network related, this will keep the original response's HttpURLConnection status code
Link copied to clipboard
@Nullable
open val tag: Any
Any extra custom content goes in here
Link copied to clipboard
val UNKNOWN_ERROR: Int
Any of the non network errors