#ifndef DEBUG_H #define DEBUG_H #include class Debug { public: static void error(const std::string& err) { qDebug(err.c_str()); throw err; } }; #endif // DEBUG_H