AuthError.js 195 B

123456789101112
  1. 'use strict';
  2. class AuthError extends Error {
  3. constructor() {
  4. super('Authorization required');
  5. this.name = 'AuthError';
  6. this.isAuthError = true;
  7. }
  8. }
  9. module.exports = AuthError;