UNPKG

@clickup/rest-client

Version:

A syntax sugar tool around Node fetch() API, tailored to work with TypeScript and response validators

133 lines (68 loc) 2.96 kB
[@clickup/rest-client](../README.md) / [Exports](../modules.md) / RestTimeoutError # Class: RestTimeoutError ## Hierarchy - [`RestResponseError`](RestResponseError.md) ↳ **`RestTimeoutError`** ## Constructors ### constructor • **new RestTimeoutError**(`message`, `res`): [`RestTimeoutError`](RestTimeoutError.md) #### Parameters | Name | Type | | :------ | :------ | | `message` | `string` | | `res` | [`RestResponse`](RestResponse.md) | #### Returns [`RestTimeoutError`](RestTimeoutError.md) #### Inherited from [RestResponseError](RestResponseError.md).[constructor](RestResponseError.md#constructor) #### Defined in [src/errors/RestResponseError.ts:19](https://github.com/clickup/rest-client/blob/master/src/errors/RestResponseError.ts#L19) ## Properties ### res`Readonly` **res**: [`RestResponse`](RestResponse.md) #### Inherited from [RestResponseError](RestResponseError.md).[res](RestResponseError.md#res) #### Defined in [src/errors/RestResponseError.ts:10](https://github.com/clickup/rest-client/blob/master/src/errors/RestResponseError.ts#L10) ___ ### method`Readonly` **method**: `string` #### Inherited from [RestResponseError](RestResponseError.md).[method](RestResponseError.md#method) #### Defined in [src/errors/RestResponseError.ts:12](https://github.com/clickup/rest-client/blob/master/src/errors/RestResponseError.ts#L12) ___ ### host`Readonly` **host**: `string` #### Inherited from [RestResponseError](RestResponseError.md).[host](RestResponseError.md#host) #### Defined in [src/errors/RestResponseError.ts:13](https://github.com/clickup/rest-client/blob/master/src/errors/RestResponseError.ts#L13) ___ ### pathname`Readonly` **pathname**: `string` #### Inherited from [RestResponseError](RestResponseError.md).[pathname](RestResponseError.md#pathname) #### Defined in [src/errors/RestResponseError.ts:14](https://github.com/clickup/rest-client/blob/master/src/errors/RestResponseError.ts#L14) ___ ### requestArgs`Readonly` **requestArgs**: `string` #### Inherited from [RestResponseError](RestResponseError.md).[requestArgs](RestResponseError.md#requestargs) #### Defined in [src/errors/RestResponseError.ts:15](https://github.com/clickup/rest-client/blob/master/src/errors/RestResponseError.ts#L15) ___ ### requestBody`Readonly` **requestBody**: `string` #### Inherited from [RestResponseError](RestResponseError.md).[requestBody](RestResponseError.md#requestbody) #### Defined in [src/errors/RestResponseError.ts:16](https://github.com/clickup/rest-client/blob/master/src/errors/RestResponseError.ts#L16) ___ ### responseHeaders`Readonly` **responseHeaders**: `string` #### Inherited from [RestResponseError](RestResponseError.md).[responseHeaders](RestResponseError.md#responseheaders) #### Defined in [src/errors/RestResponseError.ts:17](https://github.com/clickup/rest-client/blob/master/src/errors/RestResponseError.ts#L17)