Options
All
  • Public
  • Public/Protected
  • All
Menu

BleError is an error class which is guaranteed to be thrown by all functions of this library. It contains additional properties which help to identify problems in platform independent way.

Hierarchy

  • Error
    • BleError

Index

Constructors

constructor

  • new BleError(nativeBleError: string | NativeBleError, errorMessageMapping: BleErrorCodeMessageMapping): BleError
  • Parameters

    • nativeBleError: string | NativeBleError
    • errorMessageMapping: BleErrorCodeMessageMapping

    Returns BleError

Properties

androidErrorCode

androidErrorCode: null | BleAndroidErrorCode

Android specific error code (if not an ATT error).

attErrorCode

attErrorCode: null | BleATTErrorCode

Platform independent error code related to ATT errors.

errorCode

errorCode: BleErrorCode

Platform independent error code. Possible values are defined in {@link BleErrorCode}.

iosErrorCode

iosErrorCode: null | BleATTErrorCode

iOS specific error code (if not an ATT error).

message

message: string

name

name: string

reason

reason: null | string

Platform specific error message.

Optional stack

stack: string

Static Optional prepareStackTrace

prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Optional override for formatting stack traces

      Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

stackTraceLimit: number

Methods

Static captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc