Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-144

Update CRUD API errors to match the new hierarchy

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Component/s: None
    • Labels:
      None

      Description

      We don't really follow the CRUD API's specification of error types and all the values that should be included. we should audit these errors and make sure we include the necessary info.

      we should also think about ways we can incorporate our BsonDecoder to convert reply documents into errors.

      Using the new error hierarchy, we should:

      • Throw command errors in the event of actual commandErrors
      • Throw appropriate [Bulk]WriteErrors for write errors, complete with results and all errors contained therein
      • Remove InsertManyError, throw a BulkWriteError instead.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: