diff --git a/lib/error/index.js b/lib/error/index.js index ec4188d61c9..bfa57d2e223 100644 --- a/lib/error/index.js +++ b/lib/error/index.js @@ -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.