.\" Man page generated from reStructuredText. . .TH "MONGOC_ERROR_HAS_LABEL" "3" "Feb 23, 2019" "1.14.0" "MongoDB C Driver" .SH NAME mongoc_error_has_label \- mongoc_error_has_label() . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C bool mongoc_error_has_label (const bson_t *reply, const char *label); .ft P .fi .UNINDENT .UNINDENT .sp Test whether a reply from a failed operation includes a specific error label. See Error Labels for details, and see \fBmongoc_client_session_start_transaction\fP for example code that demonstrates their use. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBreply\fP: A \fI\%bson_t\fP, the reply to a failed operation. .IP \(bu 2 \fBlabel\fP: The label to test for, such as "TransientTransactionError" or "UnknownTransactionCommitResult". .UNINDENT .SH RETURNS .sp Returns true if \fBreply\fP contains the error label. .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .