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.
source share