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

return value / error reporting overhaul

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 0.4
    • None
    • None
    • None
    • all
    • Major Change

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: