Initial commit

This commit is contained in:
Arnaud Nelissen
2021-07-16 10:18:13 +02:00
commit 3af7ddab06
5894 changed files with 590836 additions and 0 deletions

35
node_modules/mongodb/lib/cmap/errors.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
'use strict';
const MongoError = require('../core/error').MongoError;
/**
* An error indicating a connection pool is closed
*
* @property {string} address The address of the connection pool
* @extends MongoError
*/
class PoolClosedError extends MongoError {
constructor(pool) {
super('Attempted to check out a connection from closed connection pool');
this.name = 'MongoPoolClosedError';
this.address = pool.address;
}
}
/**
* An error thrown when a request to check out a connection times out
*
* @property {string} address The address of the connection pool
* @extends MongoError
*/
class WaitQueueTimeoutError extends MongoError {
constructor(pool) {
super('Timed out while checking out a connection from connection pool');
this.name = 'MongoWaitQueueTimeoutError';
this.address = pool.address;
}
}
module.exports = {
PoolClosedError,
WaitQueueTimeoutError
};