Deprecate exceptions nested under DBPortPool and MongoException and provide alternatives

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 2.12.0
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Unassigned
              Reporter:
              Uladzimir Mihura (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: