From eca5f1c8831fd0776e57a174362b0515104174c2 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 16:50:45 +0200 Subject: 1.7 --- library/globalFunctions.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'library/globalFunctions.h') 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 #include #include -#include //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 -- cgit