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

Implement error helpers for generic errors

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Error Handling
    • None

      Implement generic error helpers in mongo/errors.go: HasErrorMessage, HasErrorCode and HasErrorLabels. These functions should take a generic error and try to access Message, Code and Labels fields if they exist.

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

              Created:
              Updated:
              Resolved: