@mapsindoors/react-native-maps-indoors-google-maps
    Preparing search index...

    Class MPError

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

    MPError

    Index

    Constructors

    • Creates an instance of MPError.

      Parameters

      • code: number

        The errors code, this will be a MapsIndoors error code.

        If unsure of the code, check the native SDK.

      • message: string

        A descriptive message of what caused the error.

      • Optionalstatus: number

        An optional status code, this will in case of network issues be the response code.

      • Optionaltag: any

        Optional object tag.

      Returns MPError

    Properties

    code: number

    The errors code, this will be a MapsIndoors error code.

    If unsure of the code, check the native SDK.

    message: string

    A descriptive message of what caused the error.

    status?: number

    An optional status code, this will in case of network issues be the response code.

    tag?: any

    Optional object tag.

    invalidApiKey: number = 100

    Occurs if the supplied API key is not a valid MapsIndoors key.

    networkError: number = 10

    Occurs when an internet connection is required, or if the content server is unresponsive.

    sdkNotInitialized: number = 22

    Occurs if some functions are called before the SDK has been initialized.

    unknownError: number = 20

    Occurs if an unknown exception is caught.

    Methods

    • Creator for MPError, used to decode JSON from the MapsIndoors SDK.

      Parameters

      • object: MPErrorParams

      Returns MPError

    • Parameters

      • error: Error

      Returns MPError