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