association-error.js 324 B

123456789101112131415
  1. 'use strict';
  2. const BaseError = require('./base-error');
  3. /**
  4. * Thrown when an association is improperly constructed (see message for details)
  5. */
  6. class AssociationError extends BaseError {
  7. constructor(message) {
  8. super(message);
  9. this.name = 'SequelizeAssociationError';
  10. }
  11. }
  12. module.exports = AssociationError;