123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- #ifndef BOOST_REDIS_ERROR_HPP
- #define BOOST_REDIS_ERROR_HPP
- #include <boost/system/error_code.hpp>
- namespace boost::redis {
- enum class error
- {
-
- invalid_data_type = 1,
-
- not_a_number,
-
- exceeeds_max_nested_depth,
-
- unexpected_bool_value,
-
- empty_field,
-
- expects_resp3_simple_type,
-
- expects_resp3_aggregate,
-
- expects_resp3_map,
-
- expects_resp3_set,
-
- nested_aggregate_not_supported,
-
- resp3_simple_error,
-
- resp3_blob_error,
-
- incompatible_size,
-
- not_a_double,
-
- resp3_null,
-
- not_connected,
-
- resolve_timeout,
-
- connect_timeout,
-
- pong_timeout,
-
- ssl_handshake_timeout,
-
- sync_receive_push_failed,
-
- incompatible_node_depth,
- };
- auto make_error_code(error e) -> system::error_code;
- }
- namespace std {
- template<>
- struct is_error_code_enum<::boost::redis::error> : std::true_type {};
- }
- #endif
|