(status: StatusCodes, message: ReasonPhrases | string)
| 5 | status: StatusCodes; |
| 6 | |
| 7 | constructor(status: StatusCodes, message: ReasonPhrases | string) { |
| 8 | super(message); |
| 9 | |
| 10 | Object.setPrototypeOf(this, new.target.prototype); |
| 11 | this.name = Error.name; |
| 12 | this.status = status; |
| 13 | Error.captureStackTrace(this); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | export const errorResponder = ( |
nothing calls this directly
no outgoing calls
no test coverage detected