({
status = 500,
name = 'BaseError',
message,
type = 'base_error',
errors = [],
})
| 1 | export default class BaseError extends Error { |
| 2 | constructor({ |
| 3 | status = 500, |
| 4 | name = 'BaseError', |
| 5 | message, |
| 6 | type = 'base_error', |
| 7 | errors = [], |
| 8 | }) { |
| 9 | super(message); |
| 10 | |
| 11 | this.name = name; |
| 12 | this.status = status; |
| 13 | this.type = type; |
| 14 | this.errors = errors; |
| 15 | } |
| 16 | } |
nothing calls this directly
no outgoing calls
no test coverage detected