17 #include <system_error>
19 #include <mongocxx/config/prelude.hpp>
22 MONGOCXX_INLINE_NAMESPACE_BEGIN
27 enum class server_error_code : std::int32_t {
36 MONGOCXX_API
const std::error_category& MONGOCXX_CALL server_error_category();
45 MONGOCXX_INLINE std::error_code make_error_code(server_error_code error) {
46 return {
static_cast<int>(error), server_error_category()};
49 MONGOCXX_INLINE_NAMESPACE_END
52 #include <mongocxx/config/postlude.hpp>
57 struct is_error_code_enum<
mongocxx::server_error_code> :
public true_type {};
Definition: bulk_write.hpp:22
Definition: error_code.hpp:69