summaryrefslogtreecommitdiff
path: root/library/globalFunctions.h
diff options
context:
space:
mode:
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