sequelize/sequelize

View on GitHub
src/errors/association-error.ts

Summary

Maintainability
A
0 mins
Test Coverage
import BaseError from './base-error';

/**
 * Thrown when an association is improperly constructed (see message for details)
 */
class AssociationError extends BaseError {
  constructor(message: string) {
    super(message);
    this.name = 'SequelizeAssociationError';
  }
}

export default AssociationError;