summaryrefslogtreecommitdiff
path: root/src/usvfsconnector.h
diff options
context:
space:
mode:
authorBrian Munro <brian.alexander.munro@gmail.com>2018-08-21 12:23:47 +0200
committerGitHub <noreply@github.com>2018-08-21 12:23:47 +0200
commit364289db72ca452e7af56dbf6ff43d0573656e57 (patch)
tree176e8c349fffe87996fbe4708937bc4bd587c86b /src/usvfsconnector.h
parent7b1821a5189f0187ea776c150f29e3bd7446724a (diff)
parentef771fd8ca262a136c95c5141bb0de95712d14c2 (diff)
Merge pull request #495 from Modorganizer2/Develop
Release 2.1.5
Diffstat (limited to 'src/usvfsconnector.h')
-rw-r--r--src/usvfsconnector.h16
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