aboutsummaryrefslogtreecommitdiff
path: root/c++-qt/src/typeexception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++-qt/src/typeexception.cpp')
-rw-r--r--c++-qt/src/typeexception.cpp32
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
3Gats::TypeException::TypeException( const char * const sMessage ) :
4 sMessage( sMessage )
5{
6}
7
8Gats::TypeException::TypeException( const TypeException &rSrc ) :
9 sMessage( rSrc.sMessage )
10{
11}
12
13Gats::TypeException::~TypeException()
14{
15}
16
17QException *Gats::TypeException::clone() const
18{
19 return new TypeException( *this );
20}
21
22void Gats::TypeException::raise() const
23{
24 throw *this;
25}
26
27const char *Gats::TypeException::what() const noexcept
28{
29 return sMessage;
30}
31
32