17 #include <system_error>
19 #include <mongocxx/config/prelude.hpp>
22 MONGOCXX_INLINE_NAMESPACE_BEGIN
27 enum class error_code : std::int32_t {
28 k_instance_already_exists = 1,
29 k_invalid_client_object,
30 k_invalid_collection_object,
31 k_invalid_database_object,
34 k_unknown_read_concern,
35 k_unknown_write_concern,
43 MONGOCXX_API
const std::error_category& MONGOCXX_CALL error_category();
52 MONGOCXX_INLINE std::error_code make_error_code(error_code error) {
53 return {
static_cast<int>(error), error_category()};
56 MONGOCXX_INLINE_NAMESPACE_END
59 #include <mongocxx/config/postlude.hpp>
64 struct is_error_code_enum<
mongocxx::error_code> :
public true_type {};
Definition: bulk_write.hpp:22
Definition: error_code.hpp:69