-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Use Case
As a Node Driver User
I want more descriptive error types
So that when something fails, I know where to look for the cause.
Dependencies
Acceptance Criteria
Implementation Requirements
Implement the following subclasses of MongoRuntimeError in src/error.ts
-
- MongoBatchReExecutionError
- MongoCursor
- MongoCursorExhaustedError
- MongoTailableCursorError
- MongoCursorInUseError--
- MongoNotConnectedError
Testing Requirements
- See Testing plan in docs/errors.md (https://github.com/mongodb/node-mongodb-native/pull/2862)