Boost.Redis 1.4.2
A redis client library
Loading...
Searching...
No Matches
error.hpp
1/* Copyright (c) 2018-2023 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
17enum class error
18{
21
24
27
30
33
36
39
42
45
48
51
54
57
60
63
66
69
72
75
78
81
84};
85
91auto make_error_code(error e) -> system::error_code;
92
93} // boost::redis
94
95namespace std {
96
97template<>
98struct is_error_code_enum<::boost::redis::error> : std::true_type {};
99
100} // std
101
102#endif // BOOST_REDIS_ERROR_HPP
error
Generic errors.
Definition: error.hpp:18
@ expects_resp3_set
Expects a set aggregate but got something else.
@ incompatible_size
Aggregate container has incompatible size.
@ resolve_timeout
Resolve timeout.
@ sync_receive_push_failed
Can't receive push synchronously without blocking.
@ not_a_number
Can't parse the string as a number.
@ pong_timeout
Connect timeout.
@ resp3_blob_error
Got RESP3 blob_error.
@ nested_aggregate_not_supported
Nested response not supported.
@ incompatible_node_depth
Incompatible node depth.
@ unexpected_bool_value
Got non boolean value.
@ connect_timeout
Connect timeout.
@ not_connected
There is no stablished connection.
@ expects_resp3_map
Expects a map but got other aggregate.
@ ssl_handshake_timeout
SSL handshake timeout.
@ resp3_null
Got RESP3 null.
@ not_a_double
Not a double.
@ empty_field
Expected field value is empty.
@ resp3_simple_error
Got RESP3 simple error.
@ invalid_data_type
Invalid RESP3 type.
@ exceeeds_max_nested_depth
The maximum depth of a nested response was exceeded.
@ expects_resp3_aggregate
Expects aggregate.
@ expects_resp3_simple_type
Expects a simple RESP3 type but got an aggregate.