Boost.Redis: include/boost/redis/error.hpp Source File

Boost.Redis 1.84.0 A redis client library

Loading...
Searching...
No Matches
error.hpp
1/* Copyright (c) 2018-2024 Marcelo Zimbres Silva (mzimbres@gmail.com)
2 *
3 * Distributed under the Boost Software License, Version 1.0. (See
4 * accompanying file LICENSE.txt)
5 */
6
7#ifndef BOOST_REDIS_ERROR_HPP
8#define BOOST_REDIS_ERROR_HPP
9
10#include <boost/system/error_code.hpp>
11
12namespace boost::redis {
13
17 enum class error
18{
20 invalid_data_type = 1,
21
23 not_a_number,
24
26 exceeeds_max_nested_depth,
27
29 unexpected_bool_value,
30
32 empty_field,
33
35 expects_resp3_simple_type,
36
38 expects_resp3_aggregate,
39
41 expects_resp3_map,
42
44 expects_resp3_set,
45
47 nested_aggregate_not_supported,
48
50 resp3_simple_error,
51
53 resp3_blob_error,
54
56 incompatible_size,
57
59 not_a_double,
60
62 resp3_null,
63
65 not_connected,
66
68 resolve_timeout,
69
71 connect_timeout,
72
74 pong_timeout,
75
77 ssl_handshake_timeout,
78
80 sync_receive_push_failed,
81
83 incompatible_node_depth,
84
86 resp3_hello,
87};
88
94auto make_error_code(error e) -> system::error_code;
95
96} // boost::redis
97
98namespace std {
99
100template<>
101struct is_error_code_enum<::boost::redis::error> : std::true_type {};
102
103} // std
104
105#endif // BOOST_REDIS_ERROR_HPP
boost::redis::error
error
Generic errors.
Definition error.hpp:18
boost::redis::error::expects_resp3_set
@ expects_resp3_set
Expects a set aggregate but got something else.
boost::redis::error::incompatible_size
@ incompatible_size
Aggregate container has incompatible size.
boost::redis::error::resolve_timeout
@ resolve_timeout
Resolve timeout.
boost::redis::error::sync_receive_push_failed
@ sync_receive_push_failed
Can't receive push synchronously without blocking.
boost::redis::error::not_a_number
@ not_a_number
Can't parse the string as a number.
boost::redis::error::pong_timeout
@ pong_timeout
Connect timeout.
boost::redis::error::resp3_blob_error
@ resp3_blob_error
Got RESP3 blob_error.
boost::redis::error::nested_aggregate_not_supported
@ nested_aggregate_not_supported
Nested response not supported.
boost::redis::error::incompatible_node_depth
@ incompatible_node_depth
Incompatible node depth.
boost::redis::error::unexpected_bool_value
@ unexpected_bool_value
Got non boolean value.
boost::redis::error::connect_timeout
@ connect_timeout
Connect timeout.
boost::redis::error::not_connected
@ not_connected
There is no stablished connection.
boost::redis::error::expects_resp3_map
@ expects_resp3_map
Expects a map but got other aggregate.
boost::redis::error::ssl_handshake_timeout
@ ssl_handshake_timeout
SSL handshake timeout.
boost::redis::error::resp3_null
@ resp3_null
Got RESP3 null.
boost::redis::error::not_a_double
@ not_a_double
Not a double.
boost::redis::error::empty_field
@ empty_field
Expected field value is empty.
boost::redis::error::resp3_simple_error
@ resp3_simple_error
Got RESP3 simple error.
boost::redis::error::invalid_data_type
@ invalid_data_type
Invalid RESP3 type.
boost::redis::error::exceeeds_max_nested_depth
@ exceeeds_max_nested_depth
The maximum depth of a nested response was exceeded.
boost::redis::error::expects_resp3_aggregate
@ expects_resp3_aggregate
Expects aggregate.
boost::redis::error::expects_resp3_simple_type
@ expects_resp3_simple_type
Expects a simple RESP3 type but got an aggregate.
boost::redis::error::resp3_hello
@ resp3_hello
Resp3 hello command error.