1MONGOC_CLIENT_SET_ERROR_API(3) libmongoc MONGOC_CLIENT_SET_ERROR_API(3)
2
3
4
6 mongoc_client_set_error_api - mongoc_client_set_error_api()
7
9 bool
10 mongoc_client_set_error_api (mongoc_client_t *client, int32_t version);
11
12 Configure how the C Driver reports errors. See Setting the Error API
13 Version.
14
15 Do not use this function with pooled clients, see
16 mongoc_client_pool_set_error_api().
17
19 • client: A mongoc_client_t.
20
21 • version: The version of the error API, either MONGOC_ERROR_API_VER‐
22 SION_LEGACY or MONGOC_ERROR_API_VERSION_2.
23
25 Returns true on success. If any arguments are invalid, returns false
26 and logs an error.
27
29 MongoDB, Inc
30
32 2017-present, MongoDB, Inc
33
34
35
36
371.23.1 Oct 20, 2022 MONGOC_CLIENT_SET_ERROR_API(3)