comparison Exception/SQLException.cpp @ 31:bf3dce7fedcb

Remove all references to QDebug
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Thu, 06 Sep 2012 19:14:58 +0200
parents
children f711ddb56ae7
comparison
equal deleted inserted replaced
30:1072257d2bab 31:bf3dce7fedcb
1 #include "SQLException.hpp"
2
3 #include <QtSql/QSqlQuery>
4 #include <QtSql/QSqlError>
5
6 SQLException::SQLException(const QString& errorMsg) : Exception(errorMsg)
7 {
8 }
9
10 SQLException::SQLException(const QSqlQuery& errorQuery) :
11 Exception(errorQuery.lastError().text() + ":" + errorQuery.lastQuery())
12 {
13 }