mongoc_client_pool_set_error_api(3)

mongoc_client_pool_set_error_api3

Usage

bool
mongoc_client_pool_set_error_api (mongoc_client_pool_t *client,
                                  int32_t version);

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

Parameters

•

pool: A mongoc_client_pool_t.

•

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

Returns

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

Thread safety

This function can only be called once on a pool, and must be called before the first call to mongoc_client_pool_pop().

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.