2021-06-12 14:59:58 +02:00
|
|
|
#ifndef LOOQSGENERALEXCEPTION_H
|
|
|
|
#define LOOQSGENERALEXCEPTION_H
|
2019-04-06 17:16:42 +02:00
|
|
|
|
|
|
|
#include <QException>
|
|
|
|
|
2021-06-12 14:59:58 +02:00
|
|
|
class LooqsGeneralException : public QException
|
2019-04-06 17:16:42 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
QString message;
|
2021-06-12 14:59:58 +02:00
|
|
|
LooqsGeneralException(QString message)
|
2019-04-06 17:16:42 +02:00
|
|
|
{
|
|
|
|
this->message = message;
|
2019-04-22 21:07:41 +02:00
|
|
|
}
|
2019-04-06 17:16:42 +02:00
|
|
|
void raise() const override
|
|
|
|
{
|
|
|
|
throw *this;
|
|
|
|
}
|
2021-06-12 14:59:58 +02:00
|
|
|
LooqsGeneralException *clone() const override
|
2019-04-06 17:16:42 +02:00
|
|
|
{
|
2021-06-12 14:59:58 +02:00
|
|
|
return new LooqsGeneralException(*this);
|
2019-04-06 17:16:42 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2021-06-12 14:59:58 +02:00
|
|
|
#endif // LOOQSGENERALEXCEPTION_H
|