view Exception/SQLException.cpp @ 52:725b0d776f3c

Fix a lot of problems with BitArray and reorganize which functions are located in header and file.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Thu, 13 Sep 2012 23:23:14 +0200
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())
{
}