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

Using the no-impl version of catalog-related classes should provide a better error message

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0-rc0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible

      When the registerXX() function hasn't been called as a result of not linking in the library containing the corresponding MONGO_INITIALIZER, a std::bad_function_call exception is thrown that doesn't provide any useful context toward remediation steps.

      Note: I'm filing this improvement request on behalf of xiangyu.yao; he encountered this issue while trying to define a target for C++ unit tests of the AutoGetXX RAII types. It would have been nice if the exception provided more context to have immediately realized that a library dependency was missing.

            Assignee:
            adam.martin@mongodb.com ADAM Martin (Inactive)
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: