@ledgerhq/errors

Ledger common errors

Usage no npm install needed!

<script type="module">
  import ledgerhqErrors from 'https://cdn.skypack.dev/@ledgerhq/errors';
</script>

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

Returns void

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