.\" 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_CLIENT_POOL_SET_ERROR_API" "3" "May 07, 2024" "1.27.1" "libmongoc" .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX bool mongoc_client_pool_set_error_api (mongoc_client_pool_t *client, int32_t version); .EE .UNINDENT .UNINDENT .sp Configure how the C Driver reports errors. See \fI\%Setting the Error API Version\fP\&. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBpool\fP: A \fI\%mongoc_client_pool_t\fP\&. .IP \(bu 2 \fBversion\fP: The version of the error API, either \fBMONGOC_ERROR_API_VERSION_LEGACY\fP or \fBMONGOC_ERROR_API_VERSION_2\fP\&. .UNINDENT .SH RETURNS .sp Returns true if the error API version was set, or logs an error message and returns false if \fBversion\fP is invalid. .SH THREAD SAFETY .sp This function can only be called once on a pool, and must be called before the first call to \fI\%mongoc_client_pool_pop()\fP\&. .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .