Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2129

Exception in callback is catched by async driver

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.2.2
    • Async, Error Handling
    • None

    Description

      Errors inside the SingleResultCallback are catched by the mongoDB async driver. For example, if your throwable parameter is null and you access it, you won't get an exception because the driver is catching the null pointer exception. For debugging this is not ideal. The Exception should be delegated to the developers scope.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ChampS Ben [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: