mongoc_client_set_error_api(3)

mongoc_client_set_error_api3

Usage

bool
mongoc_client_set_error_api (mongoc_client_t *client, int32_t version);

Configure how the C Driver reports errors. See Setting the Error API Version.

Do not use this function with pooled clients, see mongoc_client_pool_set_error_api().

Parameters

•

client: A mongoc_client_t.

•

version: The version of the error API, either MONGOC_ERROR_API_VERSION_LEGACY or MONGOC_ERROR_API_VERSION_2.

Returns

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

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.