aboutsummaryrefslogtreecommitdiff
path: root/c++-qt/src/parseexception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++-qt/src/parseexception.cpp')
-rw-r--r--c++-qt/src/parseexception.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/c++-qt/src/parseexception.cpp b/c++-qt/src/parseexception.cpp
new file mode 100644
index 0000000..03d547a
--- /dev/null
+++ b/c++-qt/src/parseexception.cpp
@@ -0,0 +1,31 @@
1#include "gats-qt/parseexception.h"
2
3Gats::ParseException::ParseException( const char * const sMessage ) :
4 sMessage( sMessage )
5{
6}
7
8Gats::ParseException::ParseException( const ParseException &rSrc ) :
9 sMessage( rSrc.sMessage )
10{
11}
12
13Gats::ParseException::~ParseException()
14{
15}
16
17QException *Gats::ParseException::clone() const
18{
19 return new ParseException( *this );
20}
21
22void Gats::ParseException::raise() const
23{
24 throw *this;
25}
26
27const char *Gats::ParseException::what() const noexcept
28{
29 return sMessage;
30}
31