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
    • None
    • Done
    • MONGOC_ERROR_API_V2

      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:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: