Stream errors should use more specific exceptions

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.1.2
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: