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

Add ErrorLabels property to MongoException

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: Error Handling
    • Labels:
      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

            Assignee:
            rstam Robert Stam
            Reporter:
            rstam Robert Stam
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: