18 #include <system_error>
20 #include <bsoncxx/config/prelude.hpp>
23 BSONCXX_INLINE_NAMESPACE_BEGIN
30 k_cannot_append_key_in_sub_array = 1,
33 k_cannot_close_array_in_sub_document,
36 k_cannot_close_document_in_sub_array,
39 k_cannot_perform_array_operation_on_document,
42 k_cannot_perform_document_operation_on_array,
43 #define BSONCXX_ENUM(name, value) k_need_element_type_k_##name,
44 #include <bsoncxx/enums/type.hpp>
53 k_no_document_to_close,
56 k_unmatched_key_in_builder,
68 k_failed_converting_bson_to_json,
77 k_cannot_begin_appending_array,
80 k_cannot_begin_appending_document,
83 k_cannot_end_appending_array,
86 k_cannot_end_appending_document,
89 k_invalid_binary_subtype,
92 #define BSONCXX_ENUM(name, value) k_cannot_append_##name,
93 #include <bsoncxx/enums/type.hpp>
115 BSONCXX_INLINE_NAMESPACE_END
118 #include <bsoncxx/config/postlude.hpp>
123 struct is_error_code_enum<
bsoncxx::error_code> :
public true_type {};