5
5
6
6
#include < QtCore/qscopedpointer.h>
7
7
#include < QtCore/qvariant.h>
8
- #include < QtCore/qexception.h>
9
8
10
9
#include " QtMvvmCore/qtmvvmcore_global.h"
11
10
#include " QtMvvmCore/injection.h"
11
+ #include " QtMvvmCore/exception.h"
12
12
13
13
namespace QtMvvm {
14
14
@@ -108,7 +108,7 @@ class Q_MVVMCORE_EXPORT ServiceRegistry //MAJOR make a QObject for invokable met
108
108
};
109
109
110
110
// ! Is thrown if a service is beeing registered that is already registered
111
- class Q_MVVMCORE_EXPORT ServiceExistsException : public QException
111
+ class Q_MVVMCORE_EXPORT ServiceExistsException : public QTMVVM_EXCEPTION_BASE
112
112
{
113
113
public:
114
114
// ! @private
@@ -118,9 +118,9 @@ class Q_MVVMCORE_EXPORT ServiceExistsException : public QException
118
118
const char *what () const noexcept override ;
119
119
120
120
// ! @inherit{QException::raise}
121
- void raise () const override ;
121
+ virtual void raise () const QTMVVM_EXCEPTION_OR ;
122
122
// ! @inherit{QException::clone}
123
- QException *clone () const override ;
123
+ virtual QTMVVM_EXCEPTION_BASE *clone () const QTMVVM_EXCEPTION_OR ;
124
124
125
125
protected:
126
126
// ! @private
@@ -131,7 +131,7 @@ class Q_MVVMCORE_EXPORT ServiceExistsException : public QException
131
131
};
132
132
133
133
// ! Is thrown in case the construction of a service has failed
134
- class Q_MVVMCORE_EXPORT ServiceConstructionException : public QException
134
+ class Q_MVVMCORE_EXPORT ServiceConstructionException : public QTMVVM_EXCEPTION_BASE
135
135
{
136
136
public:
137
137
// ! @private
@@ -141,9 +141,9 @@ class Q_MVVMCORE_EXPORT ServiceConstructionException : public QException
141
141
const char *what () const noexcept override ;
142
142
143
143
// ! @inherit{QException::raise}
144
- void raise () const override ;
144
+ virtual void raise () const QTMVVM_EXCEPTION_OR ;
145
145
// ! @inherit{QException::clone}
146
- QException *clone () const override ;
146
+ virtual QTMVVM_EXCEPTION_BASE *clone () const QTMVVM_EXCEPTION_OR ;
147
147
148
148
protected:
149
149
// ! @private
@@ -161,7 +161,7 @@ class Q_MVVMCORE_EXPORT ServiceDependencyException : public ServiceConstructionE
161
161
ServiceDependencyException (const QByteArray &iid);
162
162
163
163
void raise () const override ;
164
- QException *clone () const override ;
164
+ QTMVVM_EXCEPTION_BASE *clone () const override ;
165
165
166
166
protected:
167
167
// ! @private
0 commit comments