looqs/shared/looqsgeneralexception.h

16 行
421 B
C
Raw 通常表示 履歴

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 { return new LooqsGeneralException(*this); }
};
2021-06-12 14:59:58 +02:00
#endif // LOOQSGENERALEXCEPTION_H