Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1784

Export extractError function

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.6.0
    • None
    • None
    • None
    • Not Needed

    Description

      The extractError function in x/mongo/driver/errors.go converts a server response document into one of our low-level error types, which can then be fed directly into ProcessError to do SDAM error handling. This isn't required for correctness, but exporting this function would make it easier to do this in projects that depend on our low-level APIs.

      Attachments

        Activity

          People

            benji.rewis@mongodb.com Benji Rewis (Inactive)
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: