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

Deprecate exceptions nested under DBPortPool and MongoException and provide alternatives

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 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 Unassigned
            Reporter:
            uladzimir_mihura@epam.com Uladzimir Mihura (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: