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

Improve exception hierarchy for RuntimeException

    • Type: Icon: Epic Epic
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      libmongoc 1.4 introduced a new error API (MONGOC_ERROR_API_VERSION_2), which allows applications to reliably distinguish error codes originating from the client/driver and server. The differences and benefits of this new API are discussed here.

      Current hierarchy

      • RuntimeException
        • ConnectionException
          • AuthenticationException
          • ConnectionTimeoutException
          • SSLConnectionException
        • ExecutionTimeoutException
        • WriteException
          • BulkWriteException

      Proposed hierarchy

      • RuntimeException
        • ConnectionException
          • AuthenticationException
          • ConnectionTimeoutException
          • SSLConnectionException (deprecated)
        • ServerException
          • CommandException
          • ExecutionTimeoutException
          • WriteException
            • BulkWriteException

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

              Created:
              Updated:
              Resolved: