.\" Man page generated from reStructuredText. . . .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 .. .TH "MONGOC_ERROR_HAS_LABEL" "3" "May 07, 2024" "1.27.1" "libmongoc" .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX bool mongoc_error_has_label (const bson_t *reply, const char *label); .EE .UNINDENT .UNINDENT .sp Test whether a reply from a failed operation includes a specific error label. See \fI\%Error Labels\fP for details, and see \fI\%mongoc_client_session_start_transaction()\fP for example code that demonstrates their use. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBreply\fP: A non\-\fBNULL\fP pointer to \fI\%overwritable storage\fP for a \fI\%bson_t\fP to contain the results. .IP \(bu 2 \fBlabel\fP: The label to test for, such as \(dqTransientTransactionError\(dq or \(dqUnknownTransactionCommitResult\(dq. .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. .