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