Mercurial > dedupe
view Exception/SQLException.cpp @ 71:88f408092b6d
Support for code coverage analysis with gcov.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Thu, 31 Jan 2013 16:15:39 +0100 |
| parents | f711ddb56ae7 |
| children | c9447697609f |
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()) { }
