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

Implement error helpers for generic errors

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Error Handling
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: