18#include <system_error>
20#include <bsoncxx/config/prelude.hpp>
23BSONCXX_INLINE_NAMESPACE_BEGIN
29 k_cannot_append_key_in_sub_array = 1,
30 k_cannot_close_array_in_sub_document,
31 k_cannot_close_document_in_sub_array,
32 k_cannot_perform_array_operation_on_document,
33 k_cannot_perform_document_operation_on_array,
34#define BSONCXX_ENUM(name, value) k_need_element_type_k_##name,
35#include <bsoncxx/enums/type.hpp>
39 k_no_document_to_close,
40 k_unmatched_key_in_builder,
44 k_failed_converting_bson_to_json,
67BSONCXX_INLINE_NAMESPACE_END
70#include <bsoncxx/config/postlude.hpp>
75struct is_error_code_enum<
bsoncxx::error_code> :
public true_type {};
Top level namespace for MongoDB C++ BSON functionality.
Definition element.hpp:24
error_code
Definition error_code.hpp:28
const std::error_category & error_category()
Get the error_category for exceptions originating from the bsoncxx library.
std::error_code make_error_code(error_code error)
Translate a bsoncxx::error_code into a std::error_code.
Definition error_code.hpp:63