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

Expose server reply in errors

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • 1.9.0
    • None
    • None
    • None

    Description

      Background & Motivation

      There is an internal use case to check for a field in server error replies.

      This field is not exposed by any of the existing error types: CommandError, WriteError, WriteException, BulkWriteException.

      Scope
      Expose the full server reply in error types.

      Investigate possible options for exposing this API.

      Consider adding a method to the ServerError interface.

      An alternative is to return a wrapped error containing the full server reply.

      Attachments

        Activity

          People

            benji.rewis@mongodb.com Benji Rewis (Inactive)
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: