Mercurial > dedupe
view Exception.hpp @ 1:aae83c0a771d
Refactor:
-Rename all Db to DB.
Add setup script
Add support for Sqlite3 in configuration.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 20 Aug 2012 17:32:58 +0200 |
| parents | a3834af36579 |
| children | d7b384b4a834 |
line wrap: on
line source
#ifndef EXCEPTION_HPP #define EXCEPTION_HPP #include <QtCore/QString> class Exception { public: virtual QString toString() const { return errorMsg_; } protected: Exception(const QString& errorMsg) : errorMsg_(errorMsg) {} virtual ~Exception() {} void setErrorMsg(QString& errorMsg); const QString& errorMsg(QString& errorMsg); private: QString errorMsg_; }; #endif //EXCEPTION_HPP
