55
66#include < QtCore/qscopedpointer.h>
77#include < QtCore/qvariant.h>
8- #include < QtCore/qexception.h>
98
109#include " QtMvvmCore/qtmvvmcore_global.h"
1110#include " QtMvvmCore/injection.h"
11+ #include " QtMvvmCore/exception.h"
1212
1313namespace QtMvvm {
1414
@@ -108,7 +108,7 @@ class Q_MVVMCORE_EXPORT ServiceRegistry //MAJOR make a QObject for invokable met
108108};
109109
110110// ! 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
112112{
113113public:
114114 // ! @private
@@ -118,9 +118,9 @@ class Q_MVVMCORE_EXPORT ServiceExistsException : public QException
118118 const char *what () const noexcept override ;
119119
120120 // ! @inherit{QException::raise}
121- void raise () const override ;
121+ virtual void raise () const QTMVVM_EXCEPTION_OR ;
122122 // ! @inherit{QException::clone}
123- QException *clone () const override ;
123+ virtual QTMVVM_EXCEPTION_BASE *clone () const QTMVVM_EXCEPTION_OR ;
124124
125125protected:
126126 // ! @private
@@ -131,7 +131,7 @@ class Q_MVVMCORE_EXPORT ServiceExistsException : public QException
131131};
132132
133133// ! 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
135135{
136136public:
137137 // ! @private
@@ -141,9 +141,9 @@ class Q_MVVMCORE_EXPORT ServiceConstructionException : public QException
141141 const char *what () const noexcept override ;
142142
143143 // ! @inherit{QException::raise}
144- void raise () const override ;
144+ virtual void raise () const QTMVVM_EXCEPTION_OR ;
145145 // ! @inherit{QException::clone}
146- QException *clone () const override ;
146+ virtual QTMVVM_EXCEPTION_BASE *clone () const QTMVVM_EXCEPTION_OR ;
147147
148148protected:
149149 // ! @private
@@ -161,7 +161,7 @@ class Q_MVVMCORE_EXPORT ServiceDependencyException : public ServiceConstructionE
161161 ServiceDependencyException (const QByteArray &iid);
162162
163163 void raise () const override ;
164- QException *clone () const override ;
164+ QTMVVM_EXCEPTION_BASE *clone () const override ;
165165
166166protected:
167167 // ! @private
0 commit comments