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

SYNOPSIS

6          bool
7          mongoc_client_set_error_api (mongoc_client_t *client, int32_t version);
8
9       Configure  how  the  C Driver reports errors. See Setting the Error API
10       Version.
11
12       Do   not   use    this    function    with    pooled    clients,    see
13       mongoc_client_pool_set_error_api().
14

PARAMETERS

16client: A mongoc_client_t.
17
18version:  The  version of the error API, either MONGOC_ERROR_API_VER‐
19         SION_LEGACY or MONGOC_ERROR_API_VERSION_2.
20

RETURNS

22       Returns true on success. If any arguments are  invalid,  returns  false
23       and logs an error.
24

AUTHOR

26       MongoDB, Inc
27
29       2017-present, MongoDB, Inc
30
31
32
33
341.25.1                           Nov 08, 2023   MONGOC_CLIENT_SET_ERROR_API(3)
Impressum