NOISSUE move everything.

This commit is contained in:
Petr Mrázek
2015-02-09 01:51:14 +01:00
parent 4730f54df7
commit db877ba121
665 changed files with 1321 additions and 1374 deletions

25
logic/MMCError.h Normal file
View File

@ -0,0 +1,25 @@
#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;
};