mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 22:59:58 -07:00
66 lines
1.1 KiB
Markdown
66 lines
1.1 KiB
Markdown
[**brk-client**](../README.md)
|
|
|
|
***
|
|
|
|
[brk-client](../globals.md) / BrkError
|
|
|
|
# Class: BrkError
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:817](https://github.com/bitcoinresearchkit/brk/blob/467dfcc4b801a25e7d5f0ec4af8dddfffc3861d4/modules/brk-client/index.js#L817)
|
|
|
|
Custom error class for BRK client errors
|
|
|
|
## Extends
|
|
|
|
- `Error`
|
|
|
|
## Constructors
|
|
|
|
### Constructor
|
|
|
|
> **new BrkError**(`message`, `status?`): `BrkError`
|
|
|
|
Defined in: [Developer/brk/modules/brk-client/index.js:822](https://github.com/bitcoinresearchkit/brk/blob/467dfcc4b801a25e7d5f0ec4af8dddfffc3861d4/modules/brk-client/index.js#L822)
|
|
|
|
#### Parameters
|
|
|
|
##### message
|
|
|
|
`string`
|
|
|
|
##### status?
|
|
|
|
`number`
|
|
|
|
#### Returns
|
|
|
|
`BrkError`
|
|
|
|
#### Overrides
|
|
|
|
`Error.constructor`
|
|
|
|
## Methods
|
|
|
|
### isError()
|
|
|
|
> `static` **isError**(`error`): `error is Error`
|
|
|
|
Defined in: .npm/\_npx/940582f83630445a/node\_modules/typescript/lib/lib.esnext.error.d.ts:23
|
|
|
|
Indicates whether the argument provided is a built-in Error instance or not.
|
|
|
|
#### Parameters
|
|
|
|
##### error
|
|
|
|
`unknown`
|
|
|
|
#### Returns
|
|
|
|
`error is Error`
|
|
|
|
#### Inherited from
|
|
|
|
`Error.isError`
|