[CSHARP-1134] Add Mongo prefix to exception class names that don't already have it Created: 01/Dec/14  Updated: 02/Apr/15  Resolved: 01/Dec/14

Status: Closed
Project: C# Driver
Component/s: Error Handling
Affects Version/s: 1.9.2
Fix Version/s: 1.10

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

Issue Links:
Related
is related to CSHARP-1106 Review driver exception hierarchy Closed
Backwards Compatibility: Minor Change

 Description   

In 2.0 we are refactoring the exception class hierarchy, as well as adding the Mongo prefix to the few exception class names that didn't already have it.

To prepare the path for migration to 2.0, in 1.10 we will deprecate the 3 exception classes that don't already have a Mongo prefix:

  • BulkWriteException
  • ExecutionTimeoutException
  • WriteConcernException

We will introduce new exceptions with the Mongo prefix, and arrange the class hierarchy so that your existing code will catch either one (for example, if we make the new MongoBulkWriteException a subclass of BulkWriteException, existing code that catches a BulkWriteException will continue to catch a MongoBulkWriteException).



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

Author:

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

Message: CSHARP-1134: Add Mongo prefix to exception class names that didn't already have it.
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/377b39fe22771261602ac84a132472b05618d0c9

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