Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42954

Allow ErrorCategories to be explicit supersets

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch

      As is, each entry in "error_categories" in error_codes.yml is a simple string value. It should be possible for these to instead be like so:

      error_categories:
          - ShutdownError
          - {name: "CancelationError", subcategories: ["ShutdownError"],}
      

      Each category should be a superset that consists of the codes for all of its subcategories as well as each code that lists it as a category. For instance, CancelationError would list ShutdownError as a subcategory.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            ben.caimano@mongodb.com Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: