Mercurial > dedupe
comparison Exception/SQLException.hpp @ 82:f507a7240bc9
Functionality for easy clearing of a query when throwing an exception.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Thu, 10 Oct 2013 14:13:01 +0200 |
| parents | c9447697609f |
| children |
comparison
equal
deleted
inserted
replaced
| 81:69a30d9f126e | 82:f507a7240bc9 |
|---|---|
| 6 | 6 |
| 7 class SQLException : public Exception { | 7 class SQLException : public Exception { |
| 8 public: | 8 public: |
| 9 SQLException(const string_t& errMsg); | 9 SQLException(const string_t& errMsg); |
| 10 SQLException(const QSqlQuery& error); | 10 SQLException(const QSqlQuery& error); |
| 11 SQLException(QSqlQuery& error, bool clear); | |
| 11 | 12 |
| 12 virtual void raise() const; | 13 virtual void raise() const; |
| 13 }; | 14 }; |
| 14 | 15 |
| 15 #endif //IOEXCEPTION_HPP | 16 #endif //IOEXCEPTION_HPP |
