@clickup/rest-client
Version:
A syntax sugar tool around Node fetch() API, tailored to work with TypeScript and response validators
36 lines (19 loc) • 579 B
Markdown
[@clickup/rest-client](../README.md) / [Exports](../modules.md) / RestError
# Class: RestError
## Hierarchy
- `Error`
↳ **`RestError`**
↳↳ [`RestResponseError`](RestResponseError.md)
## Constructors
### constructor
• **new RestError**(`message`): [`RestError`](RestError.md)
#### Parameters
| Name | Type |
| :------ | :------ |
| `message` | `string` |
#### Returns
[`RestError`](RestError.md)
#### Overrides
Error.constructor
#### Defined in
[src/errors/RestError.ts:2](https://github.com/clickup/rest-client/blob/master/src/errors/RestError.ts#L2)