'\" t .\" 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 "BSON_ERRORS" "3" "Feb 22, 2024" "1.26.0" "libbson" .SH DESCRIPTION .sp Many libbson functions report errors by returning \fBNULL\fP or \-1 and filling out a \fI\%bson_error_t\fP structure with an error domain, error code, and message. .INDENT 0.0 .IP \(bu 2 \fBerror.domain\fP names the subsystem that generated the error. .IP \(bu 2 \fBerror.code\fP is a domain\-specific error type. .IP \(bu 2 \fBerror.message\fP describes the error. .UNINDENT .sp Some error codes overlap with others; always check both the domain and code to determine the type of error. .TS center; |l|l|l|. _ T{ \fBBSON_ERROR_JSON\fP T} T{ \fBBSON_JSON_ERROR_READ_CORRUPT_JS\fP \fBBSON_JSON_ERROR_READ_INVALID_PARAM\fP \fBBSON_JSON_ERROR_READ_CB_FAILURE\fP T} T{ \fI\%bson_json_reader_t\fP tried to parse invalid MongoDB Extended JSON. Tried to parse a valid JSON document that is invalid as MongoDBExtended JSON. An internal callback failure during JSON parsing. T} _ T{ \fBBSON_ERROR_READER\fP T} T{ \fBBSON_ERROR_READER_BADFD\fP T} T{ \fI\%bson_json_reader_new_from_file()\fP could not open the file. T} _ .TE .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .