Add ErrorLabels property to MongoException

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.7.0
    • Affects Version/s: None
    • Component/s: Error Handling
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Stam
              Reporter:
              Robert Stam
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: