MCPcopy Create free account
hub / github.com/Kong/insomnia / constructor

Method constructor

packages/insomnia-api/src/fetch.ts:29–33  ·  view source on GitHub ↗
(name: string, msg: string, response: Response)

Source from the content-addressed store, hash-verified

27export class ResponseFailError extends Error {
28 response: Response;
29 constructor(name: string, msg: string, response: Response) {
30 super(msg);
31 this.name = name || 'ResponseFailError';
32 this.response = response;
33 }
34}
35
36export const isApiError = (error: unknown): error is ResponseFailError => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected