PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@ledgerhq/errors

Просмотр файла: README.md

<img src="https://user-images.githubusercontent.com/211411/34776833-6f1ef4da-f618-11e7-8b13-f0697901d6a8.png" height="100" />

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

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### Table of Contents

-   [TransportError](#transporterror)
    -   [Parameters](#parameters)
-   [TransportStatusError](#transportstatuserror)
    -   [Parameters](#parameters-1)

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

-   `message` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
-   `id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 

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

-   `statusCode` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** 

Returns **void** 

Выполнить команду


Для локальной разработки. Не используйте в интернете!