mongoc_error_has_label(3)

mongoc_error_has_label3

Usage

bool
mongoc_error_has_label (const bson_t *reply, const char *label);

Test whether a reply from a failed operation includes a specific error label. See Error Labels for details, and see mongoc_client_session_start_transaction() for example code that demonstrates their use.

Parameters

•

reply: A non-NULL pointer to overwritable storage for a bson_t to contain the results.

•

label: The label to test for, such as "TransientTransactionError" or "UnknownTransactionCommitResult".

Returns

Returns true if reply contains the error label.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 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.