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

Select ServerException for MONGOC_ERROR_WRITE_CONCERN domain

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

      libmongoc's error documentation states that codes for errors in the write concern domain originates from the server. phongo_exception_from_mongoc_domain() should return php_phongo_serverexception_ce for such errors.

      This is independent from logic to return BulkWriteException and CommandException from phongo_execute_bulk_write() and phongo_execute_command(), respectively. Those methods will select an appropriate subclass of ServerException.

            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: