diff --git a/src/plugins/qmldesigner/core/exceptions/rewritingexception.cpp b/src/plugins/qmldesigner/core/exceptions/rewritingexception.cpp new file mode 100644 index 0000000000000000000000000000000000000000..fc07ecc90b4cf4191a65e18ecb62bfecd7c465af --- /dev/null +++ b/src/plugins/qmldesigner/core/exceptions/rewritingexception.cpp @@ -0,0 +1,15 @@ +#include "rewritingexception.h" + +using namespace QmlDesigner; + +RewritingException::RewritingException(int line, + const QString &function, + const QString &file): + Exception(line, function, file) +{ +} + +QString RewritingException::type() const +{ + return "RewritingException"; +} diff --git a/src/plugins/qmldesigner/core/include/rewritingexception.h b/src/plugins/qmldesigner/core/include/rewritingexception.h new file mode 100644 index 0000000000000000000000000000000000000000..984bc29e0f867493529eef026c4508f7ed25775e --- /dev/null +++ b/src/plugins/qmldesigner/core/include/rewritingexception.h @@ -0,0 +1,20 @@ +#ifndef REWRITINGEXCEPTION_H +#define REWRITINGEXCEPTION_H + +#include "exception.h" + +namespace QmlDesigner { + +class RewritingException: public Exception +{ +public: + RewritingException(int line, + const QString &function, + const QString &file); + + virtual QString type() const; +}; + +} // namespace QmlDesigner + +#endif // REWRITINGEXCEPTION_H