Implement error helpers for generic errors

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Error Handling
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Benji Rewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: