diff options
Diffstat (limited to 'src/usvfsconnector.h')
| -rw-r--r-- | src/usvfsconnector.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/usvfsconnector.h b/src/usvfsconnector.h index 0935bac1..40f8857b 100644 --- a/src/usvfsconnector.h +++ b/src/usvfsconnector.h @@ -21,7 +21,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #ifndef USVFSCONNECTOR_H #define USVFSCONNECTOR_H - +#include <exception> #include <filemapping.h> #include <QString> #include <QThread> @@ -58,6 +58,20 @@ private: }; +class UsvfsConnectorException : public std::exception { + +public: + UsvfsConnectorException(const QString &text) + : std::exception(), m_Message(text.toLocal8Bit()) {} + + virtual const char* what() const throw() + { return m_Message.constData(); } +private: + QByteArray m_Message; + +}; + + class UsvfsConnector : public QObject { Q_OBJECT |
