API Reference Source

lib/errors/instance-error.js

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