Exceptions throws for GLE should contain the entire GLE document

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Component/s: None

      There are other fields besides "err" and "code" that have useful information, and more are being added. Clients that log exceptions thrown due to GLE errors should contain all of it.

      The easiest solution for this ticket, for drivers that support exceptions, is to add the error document from the server as an attribute of the exception.

      Furthermore, a WTimeoutError exception is useful for differentiating errors due to wtimeout expiring from operation failures. Newer versions of MongoDB return the fields 'n', 'updatedExisting', and 'writtenTo' in this case.

              Assignee:
              Barrie Segal (Inactive)
              Reporter:
              Jeffrey Yemin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: