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

SYNOPSIS

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

PARAMETERS

14pool: A mongoc_client_pool_t.
15
16version: The version of the error API,  either  MONGOC_ERROR_API_VER‐
17         SION_LEGACY or MONGOC_ERROR_API_VERSION_2.
18

RETURNS

20       Returns true if the error API version was set, or logs an error message
21       and returns false if version is invalid.
22

THREAD SAFETY

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

AUTHOR

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)
Impressum