TODO for exception handling added
authorkorrco <korrco@localhost>
Thu, 7 Jan 2010 16:09:25 +0000 (16:09 +0000)
committerkorrco <korrco@localhost>
Thu, 7 Jan 2010 16:09:25 +0000 (16:09 +0000)
src/orm/ormrecord.h

index 5502b79..3c93461 100644 (file)
@@ -102,6 +102,12 @@ QList<T> OrmRecord<T>::load(QSqlQuery query)
     {
         if (!query.exec())
         {
+            //TODO Palo: exception handling !
+               QString start = "START\n";
+               QString end = "\nEND\n";
+               QString message = start + query.lastError().text() + end;
+               const char *data = message.toLatin1().data();
+               qDebug(data);
             throw new OrmSqlException(query.lastError().text());
         }
     }