1MONGOC_CLIENT_SET_ERROR_API(3)     libmongoc    MONGOC_CLIENT_SET_ERROR_API(3)
2
3
4

NAME

6       mongoc_client_set_error_api - mongoc_client_set_error_api()
7

SYNOPSIS

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   mon‐
16       goc_client_pool_set_error_api.
17

PARAMETERS

19client: A mongoc_client_t.
20
21version:  The  version of the error API, either MONGOC_ERROR_API_VER‐
22         SION_LEGACY or MONGOC_ERROR_API_VERSION_2.
23

RETURNS

25       Returns true on success. If any arguments are  invalid,  returns  false
26       and logs an error.
27

AUTHOR

29       MongoDB, Inc
30
32       2017-present, MongoDB, Inc
33
34
35
36
371.21.1                           Mar 02, 2022   MONGOC_CLIENT_SET_ERROR_API(3)
Impressum