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

Clean up switch statements for exception class selection

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The switch statements in phongo_exception_from_mongoc_domain() and phongo_exception_from_phongo_domain() should be cleaned up.

      Too many exceptions are currently selected by libmongoc code alone, which makes it likely that new codes will blindly default to RuntimeException.

            Assignee:
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: