File indexing completed on 2024-11-15 09:30:35
0001
0002
0003
0004
0005
0006
0007 #ifndef BOOST_REDIS_ERROR_HPP
0008 #define BOOST_REDIS_ERROR_HPP
0009
0010 #include <boost/system/error_code.hpp>
0011
0012 namespace boost::redis {
0013
0014
0015
0016
0017 enum class error
0018 {
0019
0020 invalid_data_type = 1,
0021
0022
0023 not_a_number,
0024
0025
0026 exceeeds_max_nested_depth,
0027
0028
0029 unexpected_bool_value,
0030
0031
0032 empty_field,
0033
0034
0035 expects_resp3_simple_type,
0036
0037
0038 expects_resp3_aggregate,
0039
0040
0041 expects_resp3_map,
0042
0043
0044 expects_resp3_set,
0045
0046
0047 nested_aggregate_not_supported,
0048
0049
0050 resp3_simple_error,
0051
0052
0053 resp3_blob_error,
0054
0055
0056 incompatible_size,
0057
0058
0059 not_a_double,
0060
0061
0062 resp3_null,
0063
0064
0065 not_connected,
0066
0067
0068 resolve_timeout,
0069
0070
0071 connect_timeout,
0072
0073
0074 pong_timeout,
0075
0076
0077 ssl_handshake_timeout,
0078
0079
0080 sync_receive_push_failed,
0081
0082
0083 incompatible_node_depth,
0084 };
0085
0086
0087
0088
0089
0090
0091 auto make_error_code(error e) -> system::error_code;
0092
0093 }
0094
0095 namespace std {
0096
0097 template<>
0098 struct is_error_code_enum<::boost::redis::error> : std::true_type {};
0099
0100 }
0101
0102 #endif