JSPM

@ledgerhq/errors

5.5.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 303303
  • Score
    100M100P100Q170529F
  • License Apache-2.0

Ledger common errors

Package Exports

  • @ledgerhq/errors
  • @ledgerhq/errors/lib
  • @ledgerhq/errors/lib/helpers

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ledgerhq/errors) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@ledgerhq/errors

Hodl all possible errors of Ledger (live, ledgerjs) so we can deal with them in a unified way (share between libraries, instanceof them,...)

API

Table of Contents

TransportError

TransportError is used for any generic transport errors. e.g. Error thrown when data received by exchanges are incorrect or if exchanged failed to communicate with the device for various reason.

Parameters

TransportStatusError

Error thrown when a device returned a non success status. the error.statusCode is one of the StatusCodes exported by this library.

Parameters