Skip to content

Commit

Permalink
feat(error): export MongooseServerSelectionError
Browse files Browse the repository at this point in the history
Fix #11202
  • Loading branch information
vkarpov15 committed Jan 19, 2022
1 parent a19ee6e commit d12d107
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/error/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,17 @@ MongooseError.OverwriteModelError = require('./overwriteModel');

MongooseError.MissingSchemaError = require('./missingSchema');

/**
* Thrown when the MongoDB Node driver can't connect to a valid server
* to send an operation to.
*
* @api public
* @memberOf Error
* @static MongooseServerSelectionError
*/

MongooseError.MongooseServerSelectionError = require('./serverSelection');

/**
* An instance of this error will be returned if you used an array projection
* and then modified the array in an unsafe way.
Expand Down

0 comments on commit d12d107

Please sign in to comment.