-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
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.
- is related to
-
PHPC-712 Driver should validate BSON documents before insert and update
- Closed