qredisclient
exception.h
1 #pragma once
2 
3 #include <stdexcept>
4 #include <QString>
5 
6 #define ADD_EXCEPTION \
7 public: struct Exception : public std::runtime_error { \
8  Exception(const QString &err) : std::runtime_error(err.toStdString()) {} \
9 };