-
Notifications
You must be signed in to change notification settings - Fork 1.8k
refactor(NODE-3402): implement MongoAPIError and its children #2891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(NODE-3402): implement MongoAPIError and its children #2891
Conversation
c283fea
to
63eb2be
Compare
Currently going back through the driver to locate anywhere I may have missed that would benefit from a child instance of |
|
|
|
Update: Originally, I thought |
|
@andymina |
@W-A-James |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think once the changes requested in the comments are resolved, LGTM.
@andymina |
@W-A-James SGTM, lets see what the rest of the team thinks because this would likely cause another PR to 4.0 to update the doc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice job
…validArgumentError and mark others for replacement
…ctions with MongoDriverError and mark for replacement in NODE-3483
eed35ba
to
2a1515f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, keep up the great work!
Description
Implement the errors detailed in docs/errors.md from NODE-3363 that fall under MongoAPIError
What changed?
Replacing MongoDriverError instances with the following errors where appropriate