[CSHARP-3895] Avoid rethrowing MongoConnectionException Created: 07/Oct/21  Updated: 31/Mar/22

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

Type: Improvement Priority: Unknown
Reporter: Dmitry Lukyanov (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CSHARP-4071 Fix flaky Connection_timeout_should_t... Closed

 Description   

In WrapException logic we can already have MongoConnectionException if heartbeat was failed. It's better just throw income MongoConnectionException instead of wrapping it inside MongoConnectionException  one more time. At least this test is affected by this logic


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