view Exception/SQLException.hpp @ 107:d434137e296d

Sort the prepared queries and add end and begin queries.
author Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no>
date Tue, 18 Feb 2014 17:07:01 +0100
parents f507a7240bc9
children
line wrap: on
line source

#ifndef SQLEXCEPTION_HPP
#define SQLEXCEPTION_HPP

#include "Exception.hpp"
class QSqlQuery;

class SQLException : public Exception {
public:
  SQLException(const string_t& errMsg);
  SQLException(const QSqlQuery& error);
  SQLException(QSqlQuery& error, bool clear);

  virtual void raise() const;
};

#endif //IOEXCEPTION_HPP