boost_redis 1.4.2
A redis client library
error.hpp
1/* Copyright (c) 2018-2022 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};
79
85auto make_error_code(error e) -> system::error_code;
86
87} // boost::redis
88
89namespace std {
90
91template<>
92struct is_error_code_enum<::boost::redis::error> : std::true_type {};
93
94} // std
95
96#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.
@ 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.
@ 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.