ErrorCodes::KeyNotFound and ErrorCodes::NoSuchKey are ambiguous

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • SP Prioritized List
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The KeyNotFound and NoSuchKey code names may cause confusion to readers. Apparently, KeyNotFound refers to indexes, while NoSuchKey is used to indicate a field is not found within a BSON object. Making the names more explicit would help readability and make incorrect use less likely.

      There is at least one location (storage_interface_impl.cpp) where NoSuchKey is used to indicate no documents were found.

            Assignee:
            Unassigned
            Reporter:
            Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: