| 1 | // User Error is a base class for all user related errors. We can cacth them in bulk and handle them accordingly. |
| 2 | export class AuthError extends Error { |
| 3 | constructor(message: string) { |
| 4 | super(message); |
| 5 | this.name = "UserError"; |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | export class UserNotLoggedInError extends AuthError { |
| 10 | constructor(message: string = "User is not logged in") { |
nothing calls this directly
no outgoing calls
no test coverage detected