something is working
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
/*!
|
||||
* 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;
|
||||
Reference in New Issue
Block a user