[CSHARP-2296] MongoNotPrimaryException and MongoNodeIsRecoveringException should derive from MongoCommandException Created: 13/Jun/18  Updated: 28/Oct/23  Resolved: 14/Jun/18

Status: Closed
Project: C# Driver
Component/s: Error Handling
Affects Version/s: None
Fix Version/s: 2.7.0

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently MongoNotMasterException and MongoNodeIsRecoveringException derive from MongoServerException.

But it would be better if they were derived from MongoCommandException.



 Comments   
Comment by Githook User [ 14/Jun/18 ]

Author:

{'username': 'rstam', 'name': 'rstam', 'email': 'robert@robertstam.org'}

Message: CSHARP-2296: Refactor IsRetryableWriteException to handle new base class of MongoNotPrimaryException and MongoNodeIsRecoveringException.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/3fbc334b985302b683b19d62f0ebdb67f86b068a

Comment by Githook User [ 14/Jun/18 ]

Author:

{'username': 'rstam', 'name': 'rstam', 'email': 'robert@robertstam.org'}

Message: CSHARP-2296: MongoNotPrimaryException and MongoNodeIsRecoveringException should derive from MongoCommandException.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/49ab93b93c6f4c45ea1ba1fd31f03e0a8f26c44f

Generated at Wed Feb 07 21:42:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.