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.
24 lines
329 B
24 lines
329 B
#ifndef HONAEXCEPTION_H
|
|
#define HONAEXCEPTION_H
|
|
|
|
#include <QDebug>
|
|
#include <QString>
|
|
|
|
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
|
|
|