@exodus/ledgerhq-errors v6.16.0-exodus.3
@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
typeHwTransportErrorTypemessagestring
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
statusCodenumber
Returns void
11 months ago
2 years ago
2 years ago
2 years ago