Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.10/mongoose/lib/error/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.10/mongoose/lib/error/disconnected.js

/*!
 * Module dependencies.
 */

'use strict';

const MongooseError = require('./');


/**
 * The connection failed to reconnect and will never successfully reconnect to
 * MongoDB without manual intervention.
 * @api private
 */
class DisconnectedError extends MongooseError {
  /**
   * @param {String} connectionString
   */
  constructor(id, fnName) {
    super('Connection ' + id +
    ' was disconnected when calling `' + fnName + '()`');
  }
}

Object.defineProperty(DisconnectedError.prototype, 'name', {
  value: 'DisconnectedError'
});

/*!
 * exports
 */

module.exports = DisconnectedError;

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists