[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: |
|
||||||||
| 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 |