UNPKG

352 BJavaScriptView Raw
1'use strict';
2
3const BaseError = require('./base-error');
4
5/**
6 * Thrown when a query is passed invalid options (see message for details)
7 */
8class QueryError extends BaseError {
9 constructor(message) {
10 super(message);
11 this.name = 'SequelizeQueryError';
12 Error.captureStackTrace(this, this.constructor);
13 }
14}
15
16module.exports = QueryError;