Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-2091

Documents ambiguous about error handling

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      Hello. I am looking at `insert`, `update_x` and `delete_x` documentation and it is unclear to me whether:
      1- Operation failure throws exception or
      2- Operation failure returns a nullopt or
      3- In some modes of failure it throws an exception while in other modes it returns a nullopt

      Are some errors handled by exception while others are handled by returning a nullopt result? If so then I propose this be clarified in the documentation and to consider having a single mode of error reporting to make error handling easier.

      If not please let me know what is the correct way to handle all possible error cases.

      Attachments

        Activity

          People

            Unassigned Unassigned
            puya@motionmetrics.com Puya Daravi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: