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

Method constructor

packages/insomnia/src/sync/git/system-error.ts:27–39  ·  view source on GitHub ↗
({ code, errno, message, path, syscall }: SystemErrorConstructor)

Source from the content-addressed store, hash-verified

25 syscall: SystemErrorConstructor['syscall'];
26
27 constructor({ code, errno, message, path, syscall }: SystemErrorConstructor) {
28 super(message);
29
30 const error = new Error(message);
31 this.message = error.message;
32 this.name = error.name;
33 this.stack = error.stack;
34
35 this.code = code;
36 this.errno = errno;
37 this.path = path;
38 this.syscall = syscall;
39 }
40}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected