summaryrefslogtreecommitdiff
path: root/library/globalFunctions.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 16:50:45 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 16:50:45 +0200
commiteca5f1c8831fd0776e57a174362b0515104174c2 (patch)
tree5cba4e6c74d1f5c78018eff1b09b1973c5b7604f /library/globalFunctions.h
parent1.6 (diff)
downloadFreeFileSync-eca5f1c8831fd0776e57a174362b0515104174c2.tar.gz
FreeFileSync-eca5f1c8831fd0776e57a174362b0515104174c2.tar.bz2
FreeFileSync-eca5f1c8831fd0776e57a174362b0515104174c2.zip
1.7
Diffstat (limited to 'library/globalFunctions.h')
-rw-r--r--library/globalFunctions.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/library/globalFunctions.h b/library/globalFunctions.h
index d9c0d69f..55e37c61 100644
--- a/library/globalFunctions.h
+++ b/library/globalFunctions.h
@@ -4,7 +4,6 @@
#include <string>
#include <algorithm>
#include <wx/string.h>
-#include <stdexcept> //for std::runtime_error
using namespace std;
@@ -34,4 +33,20 @@ namespace globalFunctions
wxString& includeNumberSeparator(wxString& number);
}
+
+
+class RuntimeException //Exception class used to notify of general runtime exceptions
+{
+public:
+ RuntimeException(const wxString& txt) : errorMessage(txt) {}
+
+ wxString show() const
+ {
+ return errorMessage;
+ }
+
+private:
+ wxString errorMessage;
+};
+
#endif // GLOBALFUNCTIONS_H_INCLUDED
bgstack15