UNPKG

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