Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-582

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.3
    • Affects Version/s: 1.1.2
    • Component/s: None
    • Labels:
      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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: