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

return value / error reporting overhaul

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      all
    • Major Change

      There is currently no way to know whether a bson operation succeeded or failed aside from if the program has exited or not. A different setup by which errors could be handled in the calling program would be preferable.

      Currently, most functions in the api return the bson* or bson_buffer* they were provided and exit() on error. In most cases, these pointers are not useful. One possible solution involves returning negative errors on failure, with the option to register an abortive error handler callback.

      This type of change would break old code, but make future code significantly more robust.

            Assignee:
            kbanker Kyle Banker
            Reporter:
            dkuebric dan k
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: