-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: CRUD, Read and Write Concern
Use Case
As a driver user,
I want the WriteConcernError to be used consistently in the driver,
So that I can rely on the error types to determine the class of error I received.
User Experience
- Users might be confused as to why their insert one write concern errors are not instanceof WriteConcernError.
Dependencies
- n/a
Risks/Unknowns
- none
Acceptance Criteria
Implementation Requirements
- Modify insert operations, update operations and delete operatoins to throw WriteConcernErrors instead of a MongoServerError when writeErrors is present in the command response.
(look for throw new MongoServerError(res.writeErrors[0]))
Testing Requirements
- Confirm all existing tests pass.
- Add tests demonstrating a WriteConcernError is thrown from insertOne()
Documentation Requirements
- n/a
Follow Up Requirements
- n/a