Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1646

Include server replies in all exceptions where possible

    XMLWordPrintable

Details

    Description

      Some exceptions omit a server reply. E.g. one found while implementing transaction spec tests:

      https://github.com/mongodb/mongo-cxx-driver/blob/r3.3.1/src/mongocxx/cursor.cpp#L55

      Should instead use mongoc_cursor_error_document and include the reply document if one is returned.

      From scanning through it looks like there might be more cases throwing that are not including the server reply in the exception. We should audit all such cases and add the reply where possible.

      Attachments

        Activity

          People

            benji.rewis@mongodb.com Benji Rewis
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: