MONGOC_ERROR_HAS_LABEL(3) | MongoDB C Driver | MONGOC_ERROR_HAS_LABEL(3) |
mongoc_error_has_label - mongoc_error_has_label()
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.
Returns true if reply contains the error label.
MongoDB, Inc
2017-present, MongoDB, Inc
February 23, 2019 | 1.14.0 |