#ifndef HONAEXCEPTION_H #define HONAEXCEPTION_H #include #include class HonaException : public std::exception { private: QString _str; public: HonaException(QString str) { _str = str; } virtual const char* what() const throw() { return _str.toStdString().c_str(); } }; #endif //HONAEXCEPTION_H