aboutsummaryrefslogtreecommitdiff
path: root/c++-qt/src/typeexception.cpp
blob: 13ec3de49e025f5b8d59a0537a7b588e069279a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "gats-qt/typeexception.h"

Gats::TypeException::TypeException( const char * const sMessage ) :
    sMessage( sMessage )
{
}

Gats::TypeException::TypeException( const TypeException &rSrc ) :
    sMessage( rSrc.sMessage )
{
}

Gats::TypeException::~TypeException()
{
}

QException *Gats::TypeException::clone() const
{
    return new TypeException( *this );
}

void Gats::TypeException::raise() const
{
    throw *this;
}

const char *Gats::TypeException::what() const noexcept
{
    return sMessage;
}