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