1MONGOC_ERROR_HAS_LABEL(3)          libmongoc         MONGOC_ERROR_HAS_LABEL(3)
2
3
4

SYNOPSIS

6          bool
7          mongoc_error_has_label (const bson_t *reply, const char *label);
8
9       Test  whether a reply from a failed operation includes a specific error
10       label.    See     Error     Labels     for     details,     and     see
11       mongoc_client_session_start_transaction()  for example code that demon‐
12       strates their use.
13

PARAMETERS

15reply: A bson_t, the reply to a failed operation.
16
17label: The label to test for, such as "TransientTransactionError"  or
18         "UnknownTransactionCommitResult".
19

RETURNS

21       Returns true if reply contains the error label.
22

AUTHOR

24       MongoDB, Inc
25
27       2017-present, MongoDB, Inc
28
29
30
31
321.25.1                           Nov 08, 2023        MONGOC_ERROR_HAS_LABEL(3)
Impressum