-
Type:
Task
-
Resolution: Duplicate
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
ayesha-ilm has created PR #2606: GODRIVER-3954: Implement ServerErrorInterface for ClientBulkWriteException in mongo-go-driver
Issue Text:
GODRIVER-3954(https://jira.mongodb.org/browse/GODRIVER-3954)
-
- Summary
<!--- A summary of the changes proposed by this pull request. -->
ClientBulkWriteException now implements the full ServerError interface.
-
- Background & Motivation
<!--- Rationale for the pull request. -->
ClientBulkWriteException did not implement the full ServerError interface. As a result, errors.As(err, &serverErr) returns false for a client bulk write error, and the idiomatic server-error detection path.
-
- What I have done
added missing interface functions:
- HasErrorLabel
- HasErrorMessage
- HasErrorCodeWithMessage
to ClientBulkWriteException
-
- Test Plans
- duplicates
-
GODRIVER-3954 Implement the ServerError interface for ClientBulkWriteException
-
- In Code Review
-