aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlerror.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlerror.h')
-rw-r--r--src/qml/qml/qqmlerror.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlerror.h b/src/qml/qml/qqmlerror.h
index e69b3c15ba..50491b911c 100644
--- a/src/qml/qml/qqmlerror.h
+++ b/src/qml/qml/qqmlerror.h
@@ -49,6 +49,10 @@
QT_BEGIN_NAMESPACE
+namespace QV4 {
+struct ExecutionContext;
+}
+
class QDebug;
class QQmlErrorPrivate;
class Q_QML_EXPORT QQmlError
@@ -59,6 +63,9 @@ public:
QQmlError &operator=(const QQmlError &);
~QQmlError();
+ // Use only inside catch(...) -- will re-throw if no JS exception
+ static QQmlError catchJavaScriptException(QV4::ExecutionContext *context);
+
bool isValid() const;
QUrl url() const;