-
Type: Improvement
-
Resolution: Won't Do
-
Priority: Minor - P4
-
None
-
Affects Version/s: 2.1.1
-
Component/s: Error Handling
-
None
Hello!
I ask you to consider throwing a specific subclass of TimeoutException (i.e. MongoTimeoutException) instead of the TimeoutException itself to aid debugging and external failover. Throwing TimeoutException makes it harder to differentiate mongo-specific (pool timeouts, etc.) timeouts from timeouts in user code. Throwing a subclass should not break backwards compatibility since existing catch handlers, "as" tests and proper type testing (Type.IsAssignableFrom) will continue to work properly. The sites to consider are connection stream factory, cluster manager and connection pooling code.
Thank you.