diff options
Diffstat (limited to 'MMCError.h')
-rw-r--r-- | MMCError.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/MMCError.h b/MMCError.h deleted file mode 100644 index e81054a6..00000000 --- a/MMCError.h +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once -#include <exception> -#include <QString> -#include <QDebug> - -class MMCError : public std::exception -{ -public: - MMCError(QString cause) - { - exceptionCause = cause; - qCritical() << "Exception: " + cause; - }; - virtual ~MMCError() noexcept {} - virtual const char *what() const noexcept - { - return exceptionCause.toLocal8Bit(); - }; - virtual QString cause() const - { - return exceptionCause; - } -private: - QString exceptionCause; -}; |