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

Stream errors should use more specific exceptions

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: