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