access-denied-error.js 401 B

12345678910111213141516
  1. 'use strict';
  2. const ConnectionError = require('./../connection-error');
  3. /**
  4. * Thrown when a connection to a database is refused due to insufficient privileges
  5. */
  6. class AccessDeniedError extends ConnectionError {
  7. constructor(parent) {
  8. super(parent);
  9. this.name = 'SequelizeAccessDeniedError';
  10. Error.captureStackTrace(this, this.constructor);
  11. }
  12. }
  13. module.exports = AccessDeniedError;