MONGOC_ERROR_COMMAND_INVALID_ARG should yield InvalidArgumentException

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: