API Reference Source

lib/errors/connection/host-not-reachable-error.js

  1. 'use strict';
  2.  
  3. const ConnectionError = require('./../connection-error');
  4.  
  5. /**
  6. * Thrown when a connection to a database has a hostname that was not reachable
  7. */
  8. class HostNotReachableError extends ConnectionError {
  9. constructor(parent) {
  10. super(parent);
  11. this.name = 'SequelizeHostNotReachableError';
  12. Error.captureStackTrace(this, this.constructor);
  13. }
  14. }
  15.  
  16. module.exports = HostNotReachableError;