Mercurial > dedupe
view Exception/SQLException.cpp @ 76:8136057988bc
Fixes to automatic report generating system.
A lot of new unittests.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Sat, 16 Feb 2013 15:32:20 +0100 |
| parents | c9447697609f |
| children | f507a7240bc9 |
line wrap: on
line source
#include "SQLException.hpp" #include <QtSql/QSqlError> #include <QtSql/QSqlQuery> SQLException::SQLException(const QString& errorMsg) : Exception(errorMsg) { } SQLException::SQLException(const QSqlQuery& errorQuery) : Exception(errorQuery.lastError().text() + ":" + errorQuery.lastQuery()) { } void SQLException::raise() const { throw *this; }
