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

Expose server reply in errors

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.9.0
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: