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

Stream errors should use more specific exceptions

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.1.2
    • Component/s: None
    • Labels:
      None

      Stream errors frequently end up being RuntimeExceptions instead of ConnectionExceptions or ConnectionTimeoutExceptions. This may be due to our stream wrappers, as HHVM does not have this issue when using libmongoc's own stream handlers.

      Note that we can move to more specific exceptions without breaking BC, since ConnectionException would be a sub-class of RuntimeException.

            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: