(message: string, code: string)
| 935 | class CustomError extends Error { |
| 936 | readonly code: string |
| 937 | constructor(message: string, code: string) { |
| 938 | super(message) |
| 939 | this.name = "CustomError" |
| 940 | this.code = code |
| 941 | } |
| 942 | } |
| 943 | |
| 944 | const error1 = new CustomError("test", "CUSTOM") |
nothing calls this directly
no outgoing calls
no test coverage detected