UNPKG

373 BJavaScriptView Raw
1'use strict';
2
3const BaseError = require('./base-error');
4
5/**
6 * Thrown when a some problem occurred with Instance methods (see message for details)
7 */
8class InstanceError extends BaseError {
9 constructor(message) {
10 super(message);
11 this.name = 'SequelizeInstanceError';
12 Error.captureStackTrace(this, this.constructor);
13 }
14}
15
16module.exports = InstanceError;