1 |
|
2 |
|
3 |
|
4 |
|
5 | 'use strict';
|
6 |
|
7 | const MongooseError = require('./');
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | class DisconnectedError extends MongooseError {
|
16 | |
17 |
|
18 |
|
19 | constructor(connectionString) {
|
20 | super('Ran out of retries trying to reconnect to "' +
|
21 | connectionString + '". Try setting `server.reconnectTries` and ' +
|
22 | '`server.reconnectInterval` to something higher.');
|
23 | }
|
24 | }
|
25 |
|
26 | Object.defineProperty(DisconnectedError.prototype, 'name', {
|
27 | value: 'DisconnectedError'
|
28 | });
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | module.exports = DisconnectedError;
|