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
    • Labels:
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      JAVA-757 Done 2.11.0
      PHP-708 Done 1.5.0, 1.5.0alpha1
      PYTHON-576 Done 2.7
      CXX-460 Done 0.1.0
      CDRIVER-496 Done
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion JAVA-757 Done 2.11.0 PHP-708 Done 1.5.0, 1.5.0alpha1 PYTHON-576 Done 2.7 CXX-460 Done 0.1.0 CDRIVER-496 Done

      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: