Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qv4domerrors_p.h File Reference

(22df353c14800d2e9b6d57a9a0cb9c6baa337999)

#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 25 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_HIERARCHY_REQUEST_ERR

#define DOMEXCEPTION_HIERARCHY_REQUEST_ERR   3

Definition at line 26 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_INDEX_SIZE_ERR

#define DOMEXCEPTION_INDEX_SIZE_ERR   1

Definition at line 24 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_INUSE_ATTRIBUTE_ERR

#define DOMEXCEPTION_INUSE_ATTRIBUTE_ERR   10

Definition at line 33 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_INVALID_ACCESS_ERR

#define DOMEXCEPTION_INVALID_ACCESS_ERR   15

Definition at line 38 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_INVALID_CHARACTER_ERR

#define DOMEXCEPTION_INVALID_CHARACTER_ERR   5

Definition at line 28 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_INVALID_MODIFICATION_ERR

#define DOMEXCEPTION_INVALID_MODIFICATION_ERR   13

Definition at line 36 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_INVALID_STATE_ERR

#define DOMEXCEPTION_INVALID_STATE_ERR   11

Definition at line 34 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_NAMESPACE_ERR

#define DOMEXCEPTION_NAMESPACE_ERR   14

Definition at line 37 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_NO_DATA_ALLOWED_ERR

#define DOMEXCEPTION_NO_DATA_ALLOWED_ERR   6

Definition at line 29 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_NO_MODIFICATION_ALLOWED_ERR

#define DOMEXCEPTION_NO_MODIFICATION_ALLOWED_ERR   7

Definition at line 30 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_NOT_FOUND_ERR

#define DOMEXCEPTION_NOT_FOUND_ERR   8

Definition at line 31 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_NOT_SUPPORTED_ERR

#define DOMEXCEPTION_NOT_SUPPORTED_ERR   9

Definition at line 32 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_SYNTAX_ERR

#define DOMEXCEPTION_SYNTAX_ERR   12

Definition at line 35 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_TYPE_MISMATCH_ERR

#define DOMEXCEPTION_TYPE_MISMATCH_ERR   17

Definition at line 40 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_VALIDATION_ERR

#define DOMEXCEPTION_VALIDATION_ERR   16

Definition at line 39 of file qv4domerrors_p.h.

◆ DOMEXCEPTION_WRONG_DOCUMENT_ERR

#define DOMEXCEPTION_WRONG_DOCUMENT_ERR   4

Definition at line 27 of file qv4domerrors_p.h.

◆ 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< Object > ScopedObject
Scoped< String > ScopedString
DBusConnection const char DBusError * error
GLsizei const GLfloat * v
#define QStringLiteral(str)
Definition qstring.h:1826
static constexpr Value fromInt32(int i)
Definition qv4value_p.h:190

Definition at line 42 of file qv4domerrors_p.h.

Function Documentation

◆ qt_add_domexceptions()

void qt_add_domexceptions ( QV4::ExecutionEngine * e)

Definition at line 12 of file qv4domerrors.cpp.