({ code, errno, message, path, syscall }: SystemErrorConstructor)
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected