-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.1.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 MongoAPIError
- MongoAPIError
- MongoInvalidArgumentError
- MongoCompatibilityError
- MongoMissingCredentialsError
- MongoMissingDependencyError
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)
Â
-
- File new tickets to define and use the error classes defined in the discussion on the pull request linked here
- split from
-
NODE-3399 Implement error hierarchy laid out in in docs/errors.md
- Closed