Error handling in mongo C driver 1.2.0

Is there a way to handle communication Errors in the new mongo C library. In the old driver version (outdated version), the old driver versions gave error codes for calling functions to access Mongo, for example MONGO_CONN_FAIL, MONGO_NS_INVALID. The new API handles these errors internally.

+5
source share

Source: https://habr.com/ru/post/1237753/


All Articles