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

Deprecate exceptions nested under DBPortPool and MongoException and provide alternatives

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.12.0
    • None
    • API

    Description

      Plan

      com.mongodb.DBPortPool.NoMoreConnection

      • create com.mongodb.MongoClientException extends MongoInternalException and make it a superclass of NoMoreConnection.
      • deprecate NoMoreConnection.

      com.mongodb.DBPortPool.ConnectionWaitTimeOut

      • create com.mongodb.MongoTimeoutException extends DBPortPool.NoMoreConnection and make it a superclass of ConnectionWaitTimeOut.
      • deprecate ConnectionWaitTimeOut.

      com.mongodb.DBPortPool.SemaphoresOut

      • create com.mongodb.MongoWaitQueueFullException extends DBPortPool.NoMoreConnection and make it a superclass of SemaphoresOut.
      • deprecate SemaphoresOut.

      com.mongodb.MongoException.Network

      • create com.mongodb.MongoSocketException extends MongoException and make it a superclass of Network.
      • deprecate Network.

      com.mongodb.DBPortPool.DuplicateKey

      • create com.mongodb.MongoDuplicateKeyException extends WriteConcernException and make it a superclass of DuplicateKey.
      • deprecate DuplicateKey.

      com.mongodb.DBPortPool.CursorNotFound

      • create com.mongodb.MongoCursorNotFoundException extends MongoException and make it a superclass of CursorNotFound.
      • deprecate CursorNotFound.

      Attachments

        Activity

          People

            Unassigned Unassigned
            uladzimir_mihura@epam.com Uladzimir Mihura
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: