6.19.1 • Published 3 months ago

@ledgerhq/errors v6.19.1

Weekly downloads
35,910
License
Apache-2.0
Repository
github
Last release
3 months ago

@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

HwTransportErrorType

Type of a Transport error used to represent all equivalent errors coming from all possible implementation of Transport

HwTransportError

Extends Error

Represents an error coming from the usage of any Transport implementation.

Needed to map a specific implementation error into an error that can be managed by any code unaware of the specific Transport implementation that was used.

Parameters

TransportError

Extends Error

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

Extends Error

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

Parameters

  • statusCode number The error status code coming from a Transport implementation
  • options {canBeMappedToChildError: boolean?} containing:* canBeMappedToChildError: enable the mapping of TransportStatusError to an error extending/inheriting from it . Ex: LockedDeviceError. Default to true. (optional, default {})

    • options.canBeMappedToChildError (optional, default true)
hw-app-trx@everything-registry/sub-chunk-540wallet-btcironfishledger-livehw-app-qkchw-app-ttchw-app-vaphw-ledger-providerhwapi-app-thetahw-transport-node-speculos-httpimpeditdoloribusnano-app-web-installer-libnano-app-web-installer-lib-test@arkecosystem/ledger-transport@aleworm/hw-transport-node-hid@aleworm/hw-transport-node-hid-noevents@backpacker69/hw-transport-webusb@blooo/hw-app-klaytn@blooo/hw-app-velas@blooo/hw-app-vtb@celo/viem-account-ledger@celo/wallet-ledger@claymore365123/hw-app-eth@codewarriorr/live-common@coinmasters/wallet-ledger@dharitri-sdk/hw-provider@dexfair/celo-web-signerundeet@hubbleprotocol/squads-kamino-cli@fluent-wallet/hw-app-conflux@ledgerhq/devices@ledgerhq/domain-service@ledgerhq/device-core@ledgerhq/hw-app-cosmos@ledgerhq/coin-polkadot@ledgerhq/coin-solana@ledgerhq/coin-stellar@ledgerhq/coin-tezos@ledgerhq/coin-ton@ledgerhq/coin-tron@ledgerhq/coin-xrp@ledgerhq/coin-evm@ledgerhq/coin-framework@ledgerhq/coin-icon@ledgerhq/coin-near@ledgerhq/coin-algorand@ledgerhq/coin-bitcoin@ledgerhq/coin-cardano@ledgerhq/coin-check@ledgerhq/coin-cosmos@ledgerhq/coin-elrond@ledgerhq/hw-app-algorand@ledgerhq/hw-app-eth@ledgerhq/hw-app-exchange@ledgerhq/hw-transport@ledgerhq/hw-transport-http@ledgerhq/hw-transport-node-hid@ledgerhq/hw-transport-node-hid-noevents@ledgerhq/hw-app-solana@ledgerhq/hw-app-str@ledgerhq/hw-transport-node-hid-singleton@ledgerhq/hw-transport-node-speculos@ledgerhq/hw-app-helium@ledgerhq/hw-app-icon@ledgerhq/hw-app-polkadot@ledgerhq/hw-transport-node-ble@ledgerhq/hw-app-vet@lastnetwork/wallet-ledger@ledgerhq/live-cli@ledgerhq/live-common@ledgerhq/hw-transport-webusb@ledgerhq/ledger-key-ring-protocol@ledgerhq/nano-app-web-installer-lib@ledgerhq/hw-transport-web-ble@ledgerhq/hw-transport-webauthn@ledgerhq/hw-transport-webhid@ledgerhq/hw-transport-node-speculos-http@ledgerhq/hw-transport-u2f@ledgerhq/hw-transport-vault@ledgerhq/live-common-stub@ledgerhq/live-network@ledgerhq/react-native-hid@ledgerhq/react-native-hw-transport-ble@ledgerhq/vault-common@ledgerhq/wallet-api-core@ledgerhq/wallet-btc@multiversx/sdk-hw-provider@nomicfoundation/hardhat-ledger@empiricalrun/hw-transport-speculos-http@emurgo/react-native-hid@engrave/hw-app-koinos@engrave/ledger-app-hive@meteorwallet/ledger-client@kamino-finance/squads-kamino-cli@iotexproject/hw-transport-node-hid@rango-dev/provider-ledger@randlabs/algorand-tools@stormcloud266/wallet-ledger@pontem/hw-app-aptos
6.19.1

3 months ago

6.19.1-next.0

3 months ago

6.19.0

3 months ago

6.19.0-next.0

3 months ago

6.19.0-nightly.3

3 months ago

6.19.0-nightly.2

4 months ago

6.19.0-nightly.1

4 months ago

6.17.0

6 months ago

6.18.0-next.0

6 months ago

6.17.0-nightly.1

7 months ago

6.18.0-nightly.0

6 months ago

6.18.0-nightly.1

6 months ago

6.18.0-nightly.2

6 months ago

6.17.0-nightly.2

7 months ago

6.19.0-nightly.0

4 months ago

6.17.0-next.0

6 months ago

6.18.0

5 months ago

6.17.0-nightly.0

7 months ago

6.16.4

8 months ago

6.16.4-next.0

9 months ago

6.16.4-nightly.0

9 months ago

6.16.3

9 months ago

6.16.3-nightly.1

10 months ago

6.16.3-nightly.0

10 months ago

6.16.3-next.0

10 months ago

6.16.2

10 months ago

6.16.2-new-wc.0

10 months ago

6.16.2-wc-test.0

10 months ago

6.16.2-next.0

10 months ago

6.16.2-nightly.0

11 months ago

6.16.1

1 year ago

6.16.1-next.0

1 year ago

6.13.1-next.0

1 year ago

6.16.0

1 year ago

6.16.0-next.0

1 year ago

6.14.0-next.0

1 year ago

6.15.0

1 year ago

6.14.0

1 year ago

6.13.1

1 year ago

6.13.0

1 year ago

6.13.0-next.0

1 year ago

6.15.0-next.0

1 year ago

6.12.7-nightly.0

2 years ago

6.12.7

2 years ago

6.12.6

2 years ago

6.12.5

2 years ago

6.12.7-next.0

2 years ago

6.12.5-next.0

2 years ago

6.12.6-next.0

2 years ago

6.12.6-nightly.0

2 years ago

6.12.5-nightly.0

2 years ago

6.12.4-nightly.2

2 years ago

6.12.4-nightly.1

2 years ago

6.12.4-nightly.0

2 years ago

6.12.4

2 years ago

6.12.4-next.0

2 years ago

6.12.1-nightly.0

2 years ago

6.12.0

2 years ago

6.11.2-nightly.1

2 years ago

6.12.3

2 years ago

6.12.2

2 years ago

6.12.2-nightly.0

2 years ago

6.12.1

2 years ago

6.12.3-next.0

2 years ago

6.12.2-next.0

2 years ago

6.12.1-next.0

2 years ago

6.12.0-next.0

2 years ago

6.12.3-nightly.0

2 years ago

6.12.3-nightly.1

2 years ago

6.12.0-nightly.3

2 years ago

6.12.0-nightly.2

2 years ago

6.12.2-protect.0

2 years ago

6.11.1-next.0

2 years ago

6.11.2-ts-llm.0

2 years ago

6.11.2-nightly.0

2 years ago

6.11.1

2 years ago

6.11.0

2 years ago

6.10.2-nightly.0

2 years ago

6.10.2-next.0

2 years ago

6.11.0-nightly.1

2 years ago

6.11.0-nightly.0

2 years ago

6.11.0-next.0

2 years ago

6.10.2

2 years ago

6.10.1-nightly.1

2 years ago

6.10.1-next.0

2 years ago

6.10.1-yolo.0

2 years ago

6.10.1

2 years ago

6.10.1-nightly.0

3 years ago

6.9.1-taproot.0

3 years ago

6.10.0

3 years ago

6.2.0-bsc.5

3 years ago

6.2.0-bsc.4

3 years ago

6.2.0

3 years ago

6.2.0-bsc.1

3 years ago

6.2.0-bsc.2

3 years ago

6.2.0-bsc.3

3 years ago

6.2.0-bsc.0

3 years ago

6.0.1

4 years ago

6.0.0

4 years ago

6.0.2

4 years ago

6.0.0-rc.0

4 years ago

6.0.0-alpha.5

4 years ago

5.48.1-alpha.25

4 years ago

5.50.0

4 years ago

5.49.0

4 years ago

5.48.1-uglify.0

4 years ago

5.48.0

4 years ago

5.46.0

4 years ago

5.43.0

4 years ago

5.41.0

4 years ago

5.39.2

4 years ago

5.40.0

4 years ago

5.39.0

4 years ago

5.38.0

4 years ago

5.36.0

4 years ago

5.34.0

4 years ago

5.33.1-alpha.3

4 years ago

5.30.0

4 years ago

5.29.0

4 years ago

5.28.0

4 years ago

5.26.0

4 years ago

5.25.0

4 years ago

5.23.0

4 years ago

5.22.0

4 years ago

5.21.0

4 years ago

5.19.1

4 years ago

5.19.0

4 years ago

5.17.0

5 years ago

5.15.0

5 years ago

5.13.1

5 years ago

5.13.0

5 years ago

5.12.0

5 years ago

5.11.0

5 years ago

5.9.0

5 years ago

5.7.0

5 years ago

5.6.0

5 years ago

5.5.0

5 years ago

5.3.0

5 years ago

5.1.1-alpha.2

5 years ago

5.2.0

5 years ago

5.0.0-rc.4

5 years ago

5.0.0

5 years ago

5.0.0-babel7.4

5 years ago

5.0.0-babel7.3

5 years ago

5.0.0-babel7.1

5 years ago

4.78.0

5 years ago

4.77.0

5 years ago

5.0.0-alpha.7

5 years ago

4.74.3-alpha.6

5 years ago

5.0.0-alpha.5

5 years ago

5.0.0-alpha.4

5 years ago

5.0.0-alpha.3

5 years ago

4.74.2

5 years ago

4.74.1

5 years ago

4.74.0

5 years ago

4.73.7

5 years ago

4.73.5

5 years ago

4.73.4

5 years ago

4.73.2

5 years ago

4.72.2

5 years ago

4.72.1

5 years ago

4.72.0

5 years ago

4.71.0

5 years ago

4.70.3

5 years ago

4.70.2

5 years ago

4.70.1

5 years ago

4.70.0

5 years ago

4.69.3-alpha.1

5 years ago

4.68.4

5 years ago

4.68.2

5 years ago

4.68.0

5 years ago

4.66.0

5 years ago

4.64.1

5 years ago

4.64.0

5 years ago

4.63.2

6 years ago

4.63.1

6 years ago

4.62.0

6 years ago

4.61.0

6 years ago

4.60.0

6 years ago

4.59.1-alpha.2

6 years ago

4.58.0

6 years ago

4.56.0

6 years ago

4.55.1-alpha.2

6 years ago

4.55.0

6 years ago

4.54.0

6 years ago

4.53.0

6 years ago

4.52.0

6 years ago

4.50.0

6 years ago

4.48.0

6 years ago

4.46.0

6 years ago

4.45.0

6 years ago

4.44.0

6 years ago

4.43.1-alpha.0

6 years ago

4.43.0

6 years ago

4.41.1

6 years ago

4.39.0

6 years ago

4.38.0

6 years ago

4.36.2

6 years ago

4.37.0

6 years ago

4.35.1-beta.28

6 years ago

4.36.0

6 years ago

4.35.1

6 years ago

4.35.0

6 years ago

4.33.7

6 years ago

4.32.0

6 years ago