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

MONGOC_ERROR_COMMAND_INVALID_ARG should yield InvalidArgumentException

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Currently, MONGOC_ERROR_COMMAND_INVALID_ARG error codes yield RuntimeExceptions. Since libmongoc uses this code for argument validation errors in its own API (before commands would be sent to the server), InvalidArgumentException would be more fitting. Typically, RuntimeExceptions indicate errors originating from the server.

      This is relevant to PHPC-712 and CDRIVER-2018.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: