summaryrefslogtreecommitdiffstats
path: root/logic/Exception.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-09-05 18:46:57 +0200
committerPetr Mrázek <peterix@gmail.com>2015-09-05 18:46:57 +0200
commit23d0bd8edde6aadfaa282215b5f143ad16210438 (patch)
treea14d3f47b51716fb784cb426eedd0a2e2d756b4f /logic/Exception.h
parentcd108fd02975eac3a3fed2fde26c58de5cbdaf1c (diff)
downloadMultiMC-23d0bd8edde6aadfaa282215b5f143ad16210438.tar
MultiMC-23d0bd8edde6aadfaa282215b5f143ad16210438.tar.gz
MultiMC-23d0bd8edde6aadfaa282215b5f143ad16210438.tar.lz
MultiMC-23d0bd8edde6aadfaa282215b5f143ad16210438.tar.xz
MultiMC-23d0bd8edde6aadfaa282215b5f143ad16210438.zip
NOISSUE make shared logic library ... shared
Diffstat (limited to 'logic/Exception.h')
-rw-r--r--logic/Exception.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/logic/Exception.h b/logic/Exception.h
index 2664910e..0dae39a0 100644
--- a/logic/Exception.h
+++ b/logic/Exception.h
@@ -6,7 +6,9 @@
#include <QLoggingCategory>
#include <exception>
-class Exception : public std::exception
+#include "multimc_logic_export.h"
+
+class MULTIMC_LOGIC_EXPORT Exception : public std::exception
{
public:
Exception(const QString &message) : std::exception(), m_message(message)
@@ -30,12 +32,3 @@ public:
private:
QString m_message;
};
-
-#define DECLARE_EXCEPTION(name) \
- class name##Exception : public ::Exception \
- { \
- public: \
- name##Exception(const QString &message) : Exception(message) \
- { \
- } \
- }