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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • 5.1.0
    • None
    • Error Handling
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: