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

Restructure error hierarchy

    XMLWordPrintable

    Details

    • Type: Epic
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Component/s: None
    • Labels:
      None
    • Epic Name:
      Error hierarchy
    • Detailed Project Statuses:
      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

              Assignee:
              patrick.freed Patrick Freed
              Reporter:
              jmikola Jeremy Mikola
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Start date:
                End date: