Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3524

Provide an idiomatic way for user callbacks to set unknown errors

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      User callbacks to `with_transaction` are expected to return false and set a `bson_error_t` in case of failure.  However, if a user callback is reporting a user-side error in their own code (not reporting back a different libmongoc error), there are no error codes/domains they can use to represent their failure.  Let's either provide some way to signal an "unknown error" to the driver, or document that users should set the error code and domain to 0 or another well known value.

            Assignee:
            Unassigned Unassigned
            Reporter:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: