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
qv4sqlerrors_p.h File Reference

(0dc4fd240a2897c5c443a0ef6d84c416843e4938)

#include <QtCore/private/qglobal_p.h>
+ Include dependency graph for qv4sqlerrors_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 SQLEXCEPTION_UNKNOWN_ERR   1
 
#define SQLEXCEPTION_DATABASE_ERR   2
 
#define SQLEXCEPTION_VERSION_ERR   3
 
#define SQLEXCEPTION_TOO_LARGE_ERR   4
 
#define SQLEXCEPTION_QUOTA_ERR   5
 
#define SQLEXCEPTION_SYNTAX_ERR   6
 
#define SQLEXCEPTION_CONSTRAINT_ERR   7
 
#define SQLEXCEPTION_TIMEOUT_ERR   8
 

Functions

void qt_add_sqlexceptions (QV4::ExecutionEngine *engine)
 

Macro Definition Documentation

◆ SQLEXCEPTION_CONSTRAINT_ERR

#define SQLEXCEPTION_CONSTRAINT_ERR   7

Definition at line 27 of file qv4sqlerrors_p.h.

Referenced by qt_add_sqlexceptions().

◆ SQLEXCEPTION_DATABASE_ERR

#define SQLEXCEPTION_DATABASE_ERR   2

◆ SQLEXCEPTION_QUOTA_ERR

#define SQLEXCEPTION_QUOTA_ERR   5

Definition at line 25 of file qv4sqlerrors_p.h.

Referenced by qt_add_sqlexceptions().

◆ SQLEXCEPTION_SYNTAX_ERR

#define SQLEXCEPTION_SYNTAX_ERR   6

Definition at line 26 of file qv4sqlerrors_p.h.

Referenced by qmlsqldatabase_executeSql(), and qt_add_sqlexceptions().

◆ SQLEXCEPTION_TIMEOUT_ERR

#define SQLEXCEPTION_TIMEOUT_ERR   8

Definition at line 28 of file qv4sqlerrors_p.h.

Referenced by qt_add_sqlexceptions().

◆ SQLEXCEPTION_TOO_LARGE_ERR

#define SQLEXCEPTION_TOO_LARGE_ERR   4

Definition at line 24 of file qv4sqlerrors_p.h.

Referenced by qt_add_sqlexceptions().

◆ SQLEXCEPTION_UNKNOWN_ERR

#define SQLEXCEPTION_UNKNOWN_ERR   1

◆ SQLEXCEPTION_VERSION_ERR

#define SQLEXCEPTION_VERSION_ERR   3

Function Documentation

◆ qt_add_sqlexceptions()

void qt_add_sqlexceptions ( QV4::ExecutionEngine * engine)

Definition at line 12 of file qv4sqlerrors.cpp.

References engine, QV4::Value::fromInt32(), QJSEngine::globalObject(), QJSEngine::newObject(), QStringLiteral, SQLEXCEPTION_CONSTRAINT_ERR, SQLEXCEPTION_DATABASE_ERR, SQLEXCEPTION_QUOTA_ERR, SQLEXCEPTION_SYNTAX_ERR, SQLEXCEPTION_TIMEOUT_ERR, SQLEXCEPTION_TOO_LARGE_ERR, SQLEXCEPTION_UNKNOWN_ERR, and SQLEXCEPTION_VERSION_ERR.

Referenced by QV4::ExecutionEngine::initializeGlobal().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: