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