Mercurial > dedupe
comparison Exception.hpp @ 8:d7b384b4a834
Fix compilation problems.
Fix printing issues.
Introduce raise function in Exception.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Wed, 22 Aug 2012 18:18:20 +0200 |
| parents | a3834af36579 |
| children | b5943e4bf676 |
comparison
equal
deleted
inserted
replaced
| 7:d6fdca3bf24e | 8:d7b384b4a834 |
|---|---|
| 7 | 7 |
| 8 public: | 8 public: |
| 9 virtual QString toString() const | 9 virtual QString toString() const |
| 10 { | 10 { |
| 11 return errorMsg_; | 11 return errorMsg_; |
| 12 } | |
| 13 void raise() const | |
| 14 { | |
| 15 throw *this; | |
| 12 } | 16 } |
| 13 | 17 |
| 14 | 18 |
| 15 protected: | 19 protected: |
| 16 Exception(const QString& errorMsg) : errorMsg_(errorMsg) {} | 20 Exception(const QString& errorMsg) : errorMsg_(errorMsg) {} |
