1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-07-15 16:14:12 +00:00

Throw if Redis reply contains any error messages.

This commit is contained in:
King_DuckZ 2016-06-13 17:33:25 +01:00
parent 93e328d77f
commit 9a69b8de10
2 changed files with 13 additions and 0 deletions

View file

@ -31,6 +31,7 @@
#include <utility>
#include <boost/range/iterator_range_core.hpp>
#include <boost/utility/string_ref.hpp>
#include <stdexcept>
struct redisContext;
@ -88,6 +89,11 @@ namespace redis {
LengthArray{ arg_to_bin_safe_length(string_ref(parCommand)), arg_to_bin_safe_length(std::forward<Args>(parArgs))... }.data()
);
}
class RedisError : public std::runtime_error {
public:
RedisError ( const char* parMessage, std::size_t parLength );
};
} //namespace redis
#endif