説明
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. |