Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details →
Socket
Book a DemoInstallSign in
Socket

@ledgerhq/errors

Package Overview
Dependencies
Maintainers
20
Versions
303
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/errors

Ledger common errors

Source
npmnpm
Version
6.12.2
Version published
Weekly downloads
422K
-3.95%
Maintainers
20
Weekly downloads
 
Created
Source

@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
  • HwTransportError
  • TransportError
  • TransportStatusError

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 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

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

Parameters

Returns void

Keywords

Ledger

FAQs

Package last updated on 22 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts