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

Make Stream.open/openAsync fail with IOException instead of MongoSocketOpenException

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • 5.1.0
    • Affects Version/s: None
    • Component/s: Error Handling
    • Labels:

      When Stream.open/openAsync fail with IOException, we can translate that exception into MongoInterruptedException/MongoSocketOpenException/MongoInternalException in InternalStreamConnection (a single place for all Stream implementations) similarly to how it's done for Stream.read/readAsync/write/writeAsync in InternalStreamConnection.translateReadException/translateWriteException.

            Assignee:
            Unassigned Unassigned
            Reporter:
            valentin.kovalenko@mongodb.com Valentin Kavalenka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: