UNPKG

@clickup/rest-client

Version:

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

7 lines (6 loc) 206 B
export default class RestError extends Error { constructor(message: string) { super(message); this.name = this.constructor.name; // https://javascript.info/custom-errors#further-inheritance } }