sequelize/sequelize

View on GitHub
src/errors/connection/host-not-found-error.ts

Summary

Maintainability
A
0 mins
Test Coverage
import ConnectionError from '../connection-error';

/**
 * Thrown when a connection to a database has a hostname that was not found
 */
class HostNotFoundError extends ConnectionError {
  constructor(parent: Error) {
    super(parent);
    this.name = 'SequelizeHostNotFoundError';
  }
}

export default HostNotFoundError;