blob: 08179c3df6c0a0785434bb0fc182d928b1ac2704 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
#include <QString>
#include <QException>
class ProtonException : public QException
{
public:
ProtonException(const QString& message)
: message(message) {}
virtual ~ProtonException()
{}
void raise() const { throw *this; }
ProtonException *clone() const { return new ProtonException(*this); }
QString getMessage() const {
return message;
}
private:
QString message;
};
|