-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
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 classes in src/error.ts and replace the appropriate MongoDriverError instances with instances of the children of MongoRuntimeError
- MongoRuntimeError
- MongoTransactionError
- MongoExpiredSessionError
- MongoKerberosError
- MongoResourceClosedError
- MongoServerClosedError
- MongoStreamClosedError
- MongoTopologyClosedError
Testing Requirements
- See Testing plan in docs/errors.md (https://github.com/mongodb/node-mongodb-native/blob/NODE-3363/4.0/error-hierarchy/docs/errors.md)
Documentation Requirements
- ...