1MONGOC_CLIENT_POOL_SET_ERROR_API(3)libmongocMONGOC_CLIENT_POOL_SET_ERROR_API(3)
2
3
4
6 mongoc_client_pool_set_error_api - mongoc_client_pool_set_error_api()
7
9 bool
10 mongoc_client_pool_set_error_api (mongoc_client_pool_t *client,
11 int32_t version);
12
13 Configure how the C Driver reports errors. See Setting the Error API
14 Version.
15
17 • pool: A mongoc_client_pool_t.
18
19 • version: The version of the error API, either MONGOC_ERROR_API_VER‐
20 SION_LEGACY or MONGOC_ERROR_API_VERSION_2.
21
23 Returns true if the error API version was set, or logs an error message
24 and returns false if version is invalid.
25
27 This function can only be called once on a pool, and must be called be‐
28 fore the first call to mongoc_client_pool_pop().
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.24.3 Aug 17, 202M3ONGOC_CLIENT_POOL_SET_ERROR_API(3)