Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2603

Use errors API from Go 1.13

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0.0, 1.14.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Now that we've bumped to Go version 1.13, we can make use of its features (particularly the added error API).

      1. Remove as much of internal/error.go as possible.
      2. When creating wrapped errors throughout the driver, use the new formatting directive %w where internal.WrappedError was used before.
      3. When examining wrapped errors in errors.go files, use errors.Is and errors.As instead of casting to "unwrappable" interfaces.
      4. Enable the errorlint linter and fix all errors.

            Assignee:
            preston.vasquez@mongodb.com Preston Vasquez
            Reporter:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: