-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(NODE-3421): replace MongoDriverError instances with MongoRun…
…timeError children (#2910) * refactor: Replace MongoDriverError instances * refactor: Use MongoCursorInUseError * refactor: Change error message * refactor: Change message for MongoBatchReExecutionError instance * refactor: Give default error message to special-case error classes * test: Fix test failure related to error message * style: condense constructors * chore: remove unused import * fix: Update error class parents to better reflect when user is at fault * refactor: Remove MongoResourseClosedError * test: change to be an instanceof check
- Loading branch information
Showing
7 changed files
with
69 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.