Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qv4domerrors_p.h File Reference

(0dc4fd240a2897c5c443a0ef6d84c416843e4938)

#include <QtCore/private/qglobal_p.h>
+ Include dependency graph for qv4domerrors_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  QV4
 

Macros

#define DOMEXCEPTION_INDEX_SIZE_ERR   1
 
#define DOMEXCEPTION_DOMSTRING_SIZE_ERR   2
 
#define DOMEXCEPTION_HIERARCHY_REQUEST_ERR   3
 
#define DOMEXCEPTION_WRONG_DOCUMENT_ERR   4
 
#define DOMEXCEPTION_INVALID_CHARACTER_ERR   5
 
#define DOMEXCEPTION_NO_DATA_ALLOWED_ERR   6
 
#define DOMEXCEPTION_NO_MODIFICATION_ALLOWED_ERR   7
 
#define DOMEXCEPTION_NOT_FOUND_ERR   8
 
#define DOMEXCEPTION_NOT_SUPPORTED_ERR   9
 
#define DOMEXCEPTION_INUSE_ATTRIBUTE_ERR   10
 
#define DOMEXCEPTION_INVALID_STATE_ERR   11
 
#define DOMEXCEPTION_SYNTAX_ERR   12
 
#define DOMEXCEPTION_INVALID_MODIFICATION_ERR   13
 
#define DOMEXCEPTION_NAMESPACE_ERR   14
 
#define DOMEXCEPTION_INVALID_ACCESS_ERR   15
 
#define DOMEXCEPTION_VALIDATION_ERR   16
 
#define DOMEXCEPTION_TYPE_MISMATCH_ERR   17
 
#define THROW_DOM(error, string)
 

Functions

void qt_add_domexceptions (QV4::ExecutionEngine *e)
 

Macro Definition Documentation

◆ DOMEXCEPTION_DOMSTRING_SIZE_ERR

#define DOMEXCEPTION_DOMSTRING_SIZE_ERR   2

Definition at line 24 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ DOMEXCEPTION_HIERARCHY_REQUEST_ERR

#define DOMEXCEPTION_HIERARCHY_REQUEST_ERR   3

Definition at line 25 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ DOMEXCEPTION_INDEX_SIZE_ERR

◆ DOMEXCEPTION_INUSE_ATTRIBUTE_ERR

#define DOMEXCEPTION_INUSE_ATTRIBUTE_ERR   10

Definition at line 32 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ DOMEXCEPTION_INVALID_ACCESS_ERR

#define DOMEXCEPTION_INVALID_ACCESS_ERR   15

Definition at line 37 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ DOMEXCEPTION_INVALID_CHARACTER_ERR

#define DOMEXCEPTION_INVALID_CHARACTER_ERR   5

Definition at line 27 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ DOMEXCEPTION_INVALID_MODIFICATION_ERR

#define DOMEXCEPTION_INVALID_MODIFICATION_ERR   13

Definition at line 35 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ DOMEXCEPTION_INVALID_STATE_ERR

◆ DOMEXCEPTION_NAMESPACE_ERR

#define DOMEXCEPTION_NAMESPACE_ERR   14

Definition at line 36 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ DOMEXCEPTION_NO_DATA_ALLOWED_ERR

#define DOMEXCEPTION_NO_DATA_ALLOWED_ERR   6

Definition at line 28 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ DOMEXCEPTION_NO_MODIFICATION_ALLOWED_ERR

#define DOMEXCEPTION_NO_MODIFICATION_ALLOWED_ERR   7

Definition at line 29 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ DOMEXCEPTION_NOT_FOUND_ERR

#define DOMEXCEPTION_NOT_FOUND_ERR   8

Definition at line 30 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ DOMEXCEPTION_NOT_SUPPORTED_ERR

◆ DOMEXCEPTION_SYNTAX_ERR

◆ DOMEXCEPTION_TYPE_MISMATCH_ERR

#define DOMEXCEPTION_TYPE_MISMATCH_ERR   17

◆ DOMEXCEPTION_VALIDATION_ERR

#define DOMEXCEPTION_VALIDATION_ERR   16

Definition at line 38 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ DOMEXCEPTION_WRONG_DOCUMENT_ERR

#define DOMEXCEPTION_WRONG_DOCUMENT_ERR   4

Definition at line 26 of file qv4domerrors_p.h.

Referenced by qt_add_domexceptions().

◆ THROW_DOM

#define THROW_DOM ( error,
string )
Value:
{ \
QV4::ScopedValue v(scope, scope.engine->newString(QStringLiteral(string))); \
QV4::ScopedObject ex(scope, scope.engine->newErrorObject(v)); \
ex->put(QV4::ScopedString(scope, scope.engine->newIdentifier(QStringLiteral("code"))), QV4::ScopedValue(scope, QV4::Value::fromInt32(error))); \
return scope.engine->throwError(ex); \
}
Scoped< String > ScopedString
DBusConnection const char DBusError * error
GLsizei const GLfloat * v
[13]
#define QStringLiteral(str)
static constexpr Value fromInt32(int i)
Definition qv4value_p.h:187

Definition at line 41 of file qv4domerrors_p.h.

Referenced by QQuickContext2DStyle::gradient_proto_addColorStop(), QQuickJSContext2DPrototype::method_arc(), QQuickJSContext2DPrototype::method_arcTo(), QQuickJSContext2DPrototype::method_caretBlinkRate(), QQuickJSContext2DPrototype::method_createConicalGradient(), QQuickJSContext2DPrototype::method_createImageData(), QQuickJSContext2DPrototype::method_createLinearGradient(), QQuickJSContext2DPrototype::method_createRadialGradient(), QQuickJSContext2DPrototype::method_drawFocusRing(), QQuickJSContext2DPrototype::method_drawImage(), QV4::QQmlXMLHttpRequestCtor::method_get_status(), QV4::QQmlXMLHttpRequestCtor::method_get_statusText(), QV4::QQmlXMLHttpRequestCtor::method_getAllResponseHeaders(), QQuickJSContext2DPrototype::method_getImageData(), QV4::QQmlXMLHttpRequestCtor::method_getResponseHeader(), QV4::QQmlXMLHttpRequestCtor::method_open(), QV4::QQmlXMLHttpRequestCtor::method_overrideMimeType(), QQuickJSContext2DPrototype::method_putImageData(), QV4::QQmlXMLHttpRequestCtor::method_send(), QV4::QQmlXMLHttpRequestCtor::method_set_responseType(), QQuickJSContext2DPrototype::method_setCaretSelectionRect(), and QV4::QQmlXMLHttpRequestCtor::method_setRequestHeader().

Function Documentation

◆ qt_add_domexceptions()