Skip to content

Commit

Permalink
refactor: export all error types we use in the driver
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Nov 25, 2019
1 parent 8bab074 commit 57cb4b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 57cb4b6

Please sign in to comment.