FactDev  0.1
dbexception.h
1 #ifndef DbException_H
2 #define DbException_H
3 
4 #include <exception>
5 #include <sstream>
6 #include <iostream>
7 #include <stdexcept>
8 
9 #include <QMessageBox>
10 
11 #include "utils/log.h"
12 
13 namespace Exceptions {
18 class DbException : public std::exception
19 {
20 public:
28  DbException(const QString fct, const QString fctName,
29  const QString logError, float errorCode );
30 
31 
35  virtual ~DbException() throw()
36  {
37 
38  }
39 
45  void popupMessage(QWidget *parent);
46 private:
47 
48  QString _userError;
49 };
50 }
51 
52 #endif // DbException_H
The DbException class for database exception : queries, db file, …
Definition: dbexception.h:18
virtual ~DbException()
~DbException
Definition: dbexception.h:35
void popupMessage(QWidget *parent)
DbException::popupMessage. Display a popup message with the message error.
Definition: dbexception.cpp:21
DbException(const QString fct, const QString fctName, const QString logError, float errorCode)
DbException::DbException. Construct a DbException.
Definition: dbexception.cpp:4