From 57cb4b615de83427ce0c81d0fe7db3eb2c2e77cd Mon Sep 17 00:00:00 2001 From: Matt Broadstone Date: Tue, 12 Nov 2019 17:13:10 -0500 Subject: [PATCH] refactor: export all error types we use in the driver NODE-2306 --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 3ce36f59a0..51d06a765e 100644 --- a/index.js +++ b/index.js @@ -11,6 +11,10 @@ const connect = require('./lib/mongo_client').connect; connect.MongoError = core.MongoError; connect.MongoNetworkError = core.MongoNetworkError; connect.MongoTimeoutError = core.MongoTimeoutError; +connect.MongoParseError = core.MongoParseError; +connect.MongoWriteConcernError = core.MongoWriteConcernError; +connect.MongoBulkWriteError = require('./lib/bulk/common').BulkWriteError; +connect.BulkWriteError = connect.MongoBulkWriteError; // Actual driver classes exported connect.Admin = require('./lib/admin');