Expose server reply in errors

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Critical - P2
    • 1.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
            Reporter:
            Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: