8#ifndef BOOST_REDIS_ADAPTER_RESULT_HPP
9#define BOOST_REDIS_ADAPTER_RESULT_HPP
11#include <boost/redis/resp3/type.hpp>
12#include <boost/redis/error.hpp>
13#include <boost/system/result.hpp>
16namespace boost::redis::adapter
56using result = system::result<Value, error>;
58BOOST_NORETURN
inline void
59throw_exception_from_error(
error const & e, boost::source_location
const &)
61 system::error_code ec;
73 BOOST_ASSERT_MSG(
false,
"Unexpected data type.");
system::result< Value, error > result
Stores response to individual Redis commands.
@ resp3_blob_error
Got RESP3 blob_error.
@ resp3_null
Got RESP3 null.
@ resp3_simple_error
Got RESP3 simple error.
resp3::type data_type
RESP3 error data type.
bool operator!=(error const &a, error const &b)
Compares two error objects for difference.
bool operator==(error const &a, error const &b)
Compares two error objects for equality.
std::string diagnostic
Diagnostic error message sent by Redis.