Mercurial > dedupe
view Exception/SQLException.cpp @ 79:114be42a612c
Make a library.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Thu, 10 Oct 2013 01:49:07 +0200 |
| 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; }
