Select ServerException for MONGOC_ERROR_WRITE_CONCERN domain

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: