Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-830

Consolidate error labels to Error::labels

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0-beta.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Per HELP-18449, it looks like error labels are only ever returned at the top level of a command response, but we actually have them nested in write concern errors present in either ErrorKind::Write and ErrorKind::BulkWrite. We also have them embedded in ErrorKind::Command, but that's technically correct. However, we also store them outside of ErrorKind in the private Error::labels field. For both simplicity and correctness, we eliminated any mention of labels from ErrorKind and its descendants and centralize them to Error instead.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: