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

Exception in callback is catched by async driver

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.2
    • Component/s: Async, Error Handling
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: