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