Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-75

Exceptions throws for GLE should contain the entire GLE document

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 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 Barrie Segal
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: