API Reference Source

lib/errors/connection/invalid-connection-error.js

  1. 'use strict';
  2.  
  3. const ConnectionError = require('./../connection-error');
  4.  
  5. /**
  6. * Thrown when a connection to a database has invalid values for any of the connection parameters
  7. */
  8. class InvalidConnectionError extends ConnectionError {
  9. constructor(parent) {
  10. super(parent);
  11. this.name = 'SequelizeInvalidConnectionError';
  12. Error.captureStackTrace(this, this.constructor);
  13. }
  14. }
  15.  
  16. module.exports = InvalidConnectionError;