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

Restructure error hierarchy

    XMLWordPrintable

Details

    • Epic
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 0.1.0
    • None
    • None
    • Hide

      2018-12-21 : Initial target 2019-02-01 (6weeks).
      Patrick to work on this for the rest of the rotation.

      Show
      2018-12-21 : Initial target 2019-02-01 (6weeks). Patrick to work on this for the rest of the rotation.

    Description

      The driver currently uses a variety of error names. We should come up with an error hierarchy that more closely resembles the domains found in libmongoc (see: Error Reporting).

      At a high level, we should probably have logical errors (e.g. invalid argument) and runtime errors (e.g. command failure), which will allow users to infer if an error code comes from the server.

      Attachments

        Issue Links

          Activity

            People

              patrick.freed@mongodb.com Patrick Freed
              jmikola@mongodb.com Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                6 weeks, 4 days