looqs/shared/looqsgeneralexception.h

25 řádky
423 B
C
Surový Normální zobrazení Historie

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