(name , httpStatusCode , description , isOperational)
| 1 | class BaseError extends Error { |
| 2 | constructor(name , httpStatusCode , description , isOperational){ |
| 3 | super(description); |
| 4 | Object.setPrototypeOf(this , new.target.prototype) |
| 5 | this.name = name; |
| 6 | this.httpStatusCode = httpStatusCode; |
| 7 | this.description = description; |
| 8 | this.isOperational = isOperational; |
| 9 | |
| 10 | Error.captureStackTrace(this); |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | module.exports = BaseError |
nothing calls this directly
no outgoing calls
no test coverage detected