[CSHARP-2294] Add ErrorLabels property to MongoException Created: 08/Jun/18 Updated: 28/Oct/23 Resolved: 10/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 | ||
| Epic Link: | CSHARP MongoDB 4.0 Support |
| Description |
|
In server version 4.0 the server has started returning an errorLabels field when returning an error (i.e. with { ok : 0 }). This needs to be exposed to the application. It has also been decided that drivers will sometimes add ErrorLabels to certain exceptions, so rather than defining this new Property at the MongoCommandException level it should be defined at the MongoException level. |
| Comments |
| Comment by Githook User [ 10/Jun/18 ] |
|
Author: {'username': 'rstam', 'name': 'rstam', 'email': 'robert@robertstam.org'}Message: |
| Comment by Githook User [ 10/Jun/18 ] |
|
Author: {'username': 'rstam', 'name': 'rstam', 'email': 'robert@robertstam.org'}Message: |