18 #include <system_error> 20 #include <bsoncxx/config/prelude.hpp> 23 BSONCXX_INLINE_NAMESPACE_BEGIN
43 #define BSONCXX_ENUM(name, value) k_need_element_type_k_##name, 44 #include <bsoncxx/enums/type.hpp> 56 k_unmatched_key_in_builder,
68 k_failed_converting_bson_to_json,
89 #define BSONCXX_ENUM(name, value) k_cannot_append_##name, 90 #include <bsoncxx/enums/type.hpp> 100 BSONCXX_API
const std::error_category& BSONCXX_CALL
error_category();
112 BSONCXX_INLINE_NAMESPACE_END
115 #include <bsoncxx/config/postlude.hpp> 120 struct is_error_code_enum<
bsoncxx::error_code> :
public true_type {};
No key was provided when one was needed.
Failed to begin appending a BSON document to a BSON document or array.
Failed to complete appending an array to a BSON document or array.
Definition: error_code.hpp:117
An Object ID string failed to parse.
An array was closed while no array was open.
BSON data could not be processed, but no specific reason was available.
A subarray was closed while building a subdocument.
const std::error_category & error_category()
Get the error_category for exceptions originating from the bsoncxx library.
error_code
Enum representing the various error types that can occur while operating on BSON values.
Definition: error_code.hpp:28
A document was closed while no document was open.
Failed to complete appending a BSON document to a BSON document or array.
std::error_code make_error_code(error_code error)
Translate a bsoncxx::error_code into a std::error_code.
Definition: error_code.hpp:108
A document operation was performed while building an array.
Failed to begin appending an array to a BSON document or array.
An empty element was accessed.
An array operation was performed while building a document.
A Decimal128 string failed to parse.
A JSON document failed to parse.
A subdocument was closed while building a subarray.
Top level namespace for MongoDB C++ BSON functionality.
Definition: element.hpp:24
A new key was appended while building a subarray.