diff options
Diffstat (limited to 'src/qml/jsapi/qjsvalue.h')
-rw-r--r-- | src/qml/jsapi/qjsvalue.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qml/jsapi/qjsvalue.h b/src/qml/jsapi/qjsvalue.h index 56bd64eec1..2f95e0ff31 100644 --- a/src/qml/jsapi/qjsvalue.h +++ b/src/qml/jsapi/qjsvalue.h @@ -68,6 +68,17 @@ public: UndefinedValue }; + enum ErrorType { + NoError, + GenericError, + EvalError, + RangeError, + ReferenceError, + SyntaxError, + TypeError, + URIError + }; + public: QJSValue(SpecialValue value = UndefinedValue); ~QJSValue(); @@ -137,6 +148,7 @@ public: QJSValue callWithInstance(const QJSValue &instance, const QJSValueList &args = QJSValueList()); // ### Qt6: Make const QJSValue callAsConstructor(const QJSValueList &args = QJSValueList()); // ### Qt6: Make const + ErrorType errorType() const; #ifdef QT_DEPRECATED QT_DEPRECATED QJSEngine *engine() const; #endif |