MPError class

A class of errors that can occur when using the MapsIndoors SDK

Constructors

MPError({required int code, required String message, int? status, Object? tag})

Properties

code → int
The error's code
final
hashCode → int
The hash code for this object.
no setteroverride
message → String
A message that describes the context of the error
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → int?
An optional status, if the error is a networkError, this will be the HTTP response code
final
tag → Object?
An optional tag
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic json) → MPError?

Constants

baseMapCachingNotRegistered → const int
Occurs if base-map tile caching has not been enabled, or was enabled before a MapsIndoors map view existed
baseMapCachingNotSupported → const int
Occurs if the active map provider cannot cache base-map tiles. The Google Maps flavour never can
invalidApiKey → const int
Occurs if the supplied API key is not a valid MapsIndoors key
networkError → const int
Occurs when an internet connection is required, or if the content server is unresponsive
sdkNotInitialized → const int
Occurs if some functions are called before the SDK has been initialized
unknownError → const int
Occurs if an unknown exception is caught