-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 4.0.0
-
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
MongoInvalidClassInstantiationError- MongoNotConnectedError
Testing Requirements
- See Testing plan in docs/errors.md (https://github.com/mongodb/node-mongodb-native/pull/2862)
Documentation Requirements
- Create ticket to replace MongoDriverError and MongoError instances with errors defined here where appropriate
1.
|
Replace MongoDriverError and MongoErrorInstances | NODE-3420 | Closed | Unassigned |