Manager::selectServer() should select exception class based on bson_error_t

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.1.3
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, Manager::selectServer() elects to always throw a RuntimeException. This is inconsistent with the other three execute methods choosing an exception class based on the bson_error_t domain/code. Combined, these are the four methods that could result in connection initialization, so they should handle exceptions in a like manner.

      Note: this was not an issue before PHPC-553 and PHPC-581.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: