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

Add ErrorLabels property to MongoException

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.7.0
    • None
    • Error Handling
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: