1MONGOC_CLIENT_SET_ERROR_API(3) MongoDB C Driver 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

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

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.14.0                           Feb 22, 2019   MONGOC_CLIENT_SET_ERROR_API(3)
Impressum