说明
Many libbson functions report errors by returning NULL
or -1 and filling out a bson_error_t structure with an error domain, error code, and message.
error.domain
生成错误的子系统的名称。error.code
是特定于域的错误类型。error.message
描述了错误。
某些错误代码与其他错误代码重叠;请务必同时检查域和代码以确定错误类型。
|
| bson_json_reader_t 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. |
|
| bson_json_reader_new_from_file could not open the file. |