summaryrefslogtreecommitdiffhomepage
path: root/proto-wine/proton.h
diff options
context:
space:
mode:
Diffstat (limited to 'proto-wine/proton.h')
-rw-r--r--proto-wine/proton.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/proto-wine/proton.h b/proto-wine/proton.h
new file mode 100644
index 00000000..08179c3d
--- /dev/null
+++ b/proto-wine/proton.h
@@ -0,0 +1,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;
+};