Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2294

Add ErrorLabels property to MongoException

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.0
    • Affects Version/s: None
    • Component/s: Error Handling
    • None

      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.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: