AuthError.js 236 B

12345678910
  1. class AuthError extends Error {
  2. constructor(message, options) {
  3. super(message, options)
  4. this.name = "AuthError"
  5. this.resource = options?.resource
  6. this.permissions = options?.permissions
  7. }
  8. }
  9. export default AuthError