ExportXMLWordPrintableJSON

    • 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)

        1. Summary

      <!--- A summary of the changes proposed by this pull request. -->

      ClientBulkWriteException now implements the full ServerError interface.

        1. 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.

        1. What I have done

      added missing interface functions:

      • HasErrorLabel
      • HasErrorMessage
      • HasErrorCodeWithMessage

      to ClientBulkWriteException

        1. Test Plans

            Assignee:
            Unassigned
            Reporter:
            TPM Jira Automations Bot
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: