1MONGOC_CLIENT_POOL_SET_ERROR_API(3)libmongocMONGOC_CLIENT_POOL_SET_ERROR_API(3)
2
3
4

NAME

6       mongoc_client_pool_set_error_api - mongoc_client_pool_set_error_api()
7

SYNOPSIS

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

PARAMETERS

17pool: A mongoc_client_pool_t.
18
19version: The version of the error API,  either  MONGOC_ERROR_API_VER‐
20         SION_LEGACY or MONGOC_ERROR_API_VERSION_2.
21

RETURNS

23       Returns true if the error API version was set, or logs an error message
24       and returns false if version is invalid.
25

THREAD SAFETY

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

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.21.1                           Mar 02, 202M2ONGOC_CLIENT_POOL_SET_ERROR_API(3)
Impressum