sequelize/sequelize

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

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Sequelize provides a host of custom error classes, to allow you to do easier debugging.
 * All of these errors are exposed on Sequelize constructor.
 * All Sequelize errors inherit from ES6 Error class.
 *
 * This means that errors can be accessed using `Sequelize.ValidationError`
 * The Base Error all Sequelize Errors inherit from.
 */
class BaseError extends Error {
  constructor(message?: string) {
    super(message);
    this.name = 'SequelizeBaseError';
  }
}

export default BaseError;