[JAVA-896] Deprecate exceptions nested under DBPortPool and MongoException and provide alternatives Created: 22/Jul/13  Updated: 03/Apr/14  Resolved: 16/Aug/13

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 2.12.0

Type: Task Priority: Major - P3
Reporter: Uladzimir Mihura Assignee: Unassigned
Resolution: Done Votes: 0
Labels: 2to3
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.



 Comments   
Comment by Githook User [ 01/Apr/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-896: Adding @since Javadoc annotation to new public classes.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/206cc907136fad5b205472561583daa08491474d

Comment by auto [ 15/Aug/13 ]

Author:

{u'username': u'trnl', u'name': u'Uladzimir Mihura', u'email': u'trnl.me@gmail.com'}

Message: JAVA-896: deprecate exceptions nested under DBPortPool & MongoException
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/518e149750c51d2970982ba883c49830ebf0a196

Generated at Thu Feb 08 08:53:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.