QSettingsDialog  1.0.0
A Qt library to easily create a settings dialog for user configurable settings
D:/felix/linked/Qworkplace/QSettingsDialog/QSettingsDialog/qtexception.h
1 #ifndef QTEXCEPTION_H
2 #define QTEXCEPTION_H
3 
4 #include "qsettingsdialog_global.h"
5 #include <exception>
6 #include <QString>
7 
9 class QSETTINGSDIALOGSHARED_EXPORT QtException : public std::exception
10 {
11 public:
13  QtException(const QString &what = QString(), int code = 0);
14 
16  QString qWhat() const;
18  int code() const;
20  const char *what() const noexcept final;
21 
22 private:
23  const QByteArray error;
24  const int eCode;
25 };
26 
27 #endif // QTEXCEPTION_H
A basic exception type for Qt Exceptions.
Definition: qtexception.h:9