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

Use error “Cause” to deliver better error messaging when supported.

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.0
    • Affects Version/s: None
    • Component/s: Error Handling
    • None
    • Go Drivers
    • 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?

      Per a Slack thread:

      This ticket proposes using Go’s new “Cause” APIs to augment “context canceled” and “context deadline exceeded” messages with more detail. For example, what canceled the context? Or, what was supposed to happen before the deadline passed?

      (For reference, Mongosync plans to implement something similar in REP-3632.)

      NB: While the Cause APIs are new in Go 1.20, build tags would allow their use without breaking compatibility with earlier Go releases.

            Assignee:
            Unassigned Unassigned
            Reporter:
            felipe.gasper@mongodb.com Felipe Gasper
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: