You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
516 B

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