Kexi API Documentation (2.0 alpha)

error.h File Reference

#include <qstring.h>
#include "kexidb/kexidb_export.h"

Go to the source code of this file.

Namespaces

namespace  KexiDB

Defines

#define ERR_NONE   0
#define ERR_NO_NAME_SPECIFIED   9
#define ERR_DRIVERMANAGER   10
#define ERR_INVALID_IDENTIFIER   11
#define ERR_MISSING_DB_LOCATION   20
#define ERR_ALREADY_CONNECTED   30
#define ERR_NO_CONNECTION   40
 when opened connection was expected using KexiDB::Connection
#define ERR_CONNECTION_FAILED   41
 when connection has failed
#define ERR_CLOSE_FAILED   42
 when closing has failed
#define ERR_NO_DB_USED   43
 when used database was expected in KexiDB::Connection
#define ERR_OBJECT_EXISTS   50
#define ERR_OBJECT_THE_SAME   51
#define ERR_OBJECT_NOT_FOUND   60
#define ERR_ACCESS_RIGHTS   70
#define ERR_TRANSACTION_ACTIVE   80
#define ERR_NO_TRANSACTION_ACTIVE   81
#define ERR_NO_DB_PROPERTY   90
#define ERR_DB_SPECIFIC   100
#define ERR_CURSOR_NOT_OPEN   110
#define ERR_SINGLE_DB_NAME_MISMATCH   120
#define ERR_CURSOR_RECORD_FETCHING   130
 eg. for Cursor::drv_getNextRecord()
#define ERR_UNSUPPORTED_DRV_FEATURE   140
 given driver's feature is unsupported (eg. transactins)
#define ERR_ROLLBACK_OR_COMMIT_TRANSACTION   150
 error during transaction rollback or commit
#define ERR_SYSTEM_NAME_RESERVED   160
 (e.g. for table, db, or field name)
#define ERR_CANNOT_CREATE_EMPTY_OBJECT   170
 (e.g. table without fields)
#define ERR_INVALID_DRIVER_IMPL   180
#define ERR_INCOMPAT_DRIVER_VERSION   181
 driver's version is incompatible
#define ERR_INCOMPAT_DATABASE_VERSION   182
 used Kexi version
#define ERR_INVALID_DATABASE_CONTENTS   183
 (e.g. no enough information to open db)
#define ERR_UPDATE_NULL_PKEY_FIELD   190
 null pkey field on updating
#define ERR_UPDATE_SERVER_ERROR   191
 error @ the server side during data updating
#define ERR_UPDATE_NO_MASTER_TABLE   192
 is no master table defined
#define ERR_UPDATE_NO_MASTER_TABLES_PKEY   193
 because it's master table has no primary key defined
#define ERR_UPDATE_NO_ENTIRE_MASTER_TABLES_PKEY   194
 because it does not contain entire master table's primary key
#define ERR_INSERT_NULL_PKEY_FIELD   220
 null pkey field on updating
#define ERR_INSERT_SERVER_ERROR   221
 error @ the server side during data inserting
#define ERR_INSERT_NO_MASTER_TABLE   222
 is no master table defined
#define ERR_INSERT_NO_MASTER_TABLES_PKEY   223
 table has no primary key defined
#define ERR_INSERT_NO_ENTIRE_MASTER_TABLES_PKEY   224
 because it does not contain entire master table's primary key
#define ERR_DELETE_NULL_PKEY_FIELD   250
 null pkey field on updating
#define ERR_DELETE_SERVER_ERROR   251
 error @ the server side during data deleting
#define ERR_DELETE_NO_MASTER_TABLE   252
 is no master table defined
#define ERR_DELETE_NO_MASTER_TABLES_PKEY   253
 table has no primary key defined
#define ERR_DELETE_NO_ENTIRE_MASTER_TABLES_PKEY   254
 because it does not contain entire master table's primary key
#define ERR_SQL_EXECUTION_ERROR   260
 usually returned by Connection::executeSQL()
#define ERR_SQL_PARSE_ERROR   270
 Parse error coming from arser::parse().
#define ERR_OTHER   0xffff
 use this if you have not (yet?) the name for given error


Define Documentation

#define ERR_ACCESS_RIGHTS   70
 

Definition at line 43 of file error.h.

Referenced by KexiDB::Connection::databaseExists(), KexiDB::SQLiteConnection::drv_dropDatabase(), and KexiDB::SQLiteConnection::drv_useDatabase().

#define ERR_ALREADY_CONNECTED   30
 

Definition at line 35 of file error.h.

Referenced by KexiDB::Connection::connect().

#define ERR_CANNOT_CREATE_EMPTY_OBJECT   170
 

(e.g. table without fields)

Definition at line 55 of file error.h.

Referenced by KexiDB::Connection::createTable().

#define ERR_CLOSE_FAILED   42
 

when closing has failed

Definition at line 38 of file error.h.

Referenced by KexiDB::SQLiteConnection::drv_closeDatabase().

#define ERR_CONNECTION_FAILED   41
 

when connection has failed

Definition at line 37 of file error.h.

#define ERR_CURSOR_NOT_OPEN   110
 

Definition at line 48 of file error.h.

#define ERR_CURSOR_RECORD_FETCHING   130
 

eg. for Cursor::drv_getNextRecord()

Definition at line 50 of file error.h.

Referenced by KexiDB::Connection::checkIfColumnExists(), and KexiDB::Cursor::getNextRecord().

#define ERR_DB_SPECIFIC   100
 

Definition at line 47 of file error.h.

Referenced by KexiDB::pqxxSqlCursor::drv_open(), and KexiDB::MySqlCursor::drv_open().

#define ERR_DELETE_NO_ENTIRE_MASTER_TABLES_PKEY   254
 

because it does not contain entire master table's primary key

Definition at line 94 of file error.h.

Referenced by KexiDB::Connection::deleteRow().

#define ERR_DELETE_NO_MASTER_TABLE   252
 

is no master table defined

Definition at line 90 of file error.h.

Referenced by KexiDB::Connection::deleteRow().

#define ERR_DELETE_NO_MASTER_TABLES_PKEY   253
 

table has no primary key defined

Definition at line 92 of file error.h.

Referenced by KexiDB::Connection::deleteRow().

#define ERR_DELETE_NULL_PKEY_FIELD   250
 

null pkey field on updating

Definition at line 88 of file error.h.

Referenced by KexiDB::Connection::deleteRow().

#define ERR_DELETE_SERVER_ERROR   251
 

error @ the server side during data deleting

Definition at line 89 of file error.h.

Referenced by KexiDB::Connection::deleteAllRows(), KexiDB::Connection::deleteRow(), and KexiDB::Connection::removeObject().

#define ERR_DRIVERMANAGER   10
 

Definition at line 32 of file error.h.

Referenced by KexiMigration::MigrateManagerInternal::driver(), KexiDB::DriverManagerInternal::driver(), KexiDB::DriverManagerInternal::driverInfo(), KexiMigration::MigrateManagerInternal::lookupDrivers(), KexiDB::DriverManagerInternal::lookupDrivers(), and KexiDB::DriverManager::serviceInfo().

#define ERR_INCOMPAT_DATABASE_VERSION   182
 

used Kexi version

Definition at line 59 of file error.h.

Referenced by KexiDB::Connection::useDatabase().

#define ERR_INCOMPAT_DRIVER_VERSION   181
 

driver's version is incompatible

Definition at line 58 of file error.h.

Referenced by KexiMigration::KexiMigrate::isValid().

#define ERR_INSERT_NO_ENTIRE_MASTER_TABLES_PKEY   224
 

because it does not contain entire master table's primary key

Definition at line 83 of file error.h.

Referenced by KexiDB::Connection::insertRow().

#define ERR_INSERT_NO_MASTER_TABLE   222
 

is no master table defined

Definition at line 79 of file error.h.

Referenced by KexiDB::Connection::insertRow().

#define ERR_INSERT_NO_MASTER_TABLES_PKEY   223
 

table has no primary key defined

Definition at line 81 of file error.h.

Referenced by KexiDB::Connection::insertRow().

#define ERR_INSERT_NULL_PKEY_FIELD   220
 

null pkey field on updating

Definition at line 77 of file error.h.

#define ERR_INSERT_SERVER_ERROR   221
 

error @ the server side during data inserting

Definition at line 78 of file error.h.

Referenced by KexiDB::Connection::insertRow().

#define ERR_INVALID_DATABASE_CONTENTS   183
 

(e.g. no enough information to open db)

Definition at line 61 of file error.h.

#define ERR_INVALID_DRIVER_IMPL   180
 

Definition at line 57 of file error.h.

#define ERR_INVALID_IDENTIFIER   11
 

Definition at line 33 of file error.h.

Referenced by KexiDB::Connection::alterTableName(), KexiDB::Connection::setupField(), and KexiDB::Connection::setupObjectSchemaData().

#define ERR_MISSING_DB_LOCATION   20
 

Definition at line 34 of file error.h.

Referenced by KexiDB::Driver::createConnection().

#define ERR_NO_CONNECTION   40
 

when opened connection was expected using KexiDB::Connection

Definition at line 36 of file error.h.

Referenced by KexiDB::Connection::checkConnected(), and KexiDB::pqxxSqlCursor::drv_open().

#define ERR_NO_DB_PROPERTY   90
 

Definition at line 46 of file error.h.

Referenced by KexiProject::openInternal(), and KexiDB::DatabaseProperties::value().

#define ERR_NO_DB_USED   43
 

when used database was expected in KexiDB::Connection

Definition at line 39 of file error.h.

Referenced by KexiDB::Connection::checkIsDatabaseUsed(), and KexiDB::Connection::useTemporaryDatabaseIfNeeded().

#define ERR_NO_NAME_SPECIFIED   9
 

Definition at line 31 of file error.h.

Referenced by KexiDB::Connection::dropDatabase().

#define ERR_NO_TRANSACTION_ACTIVE   81
 

Definition at line 45 of file error.h.

Referenced by KexiDB::Connection::commitTransaction(), and KexiDB::Connection::rollbackTransaction().

#define ERR_NONE   0
 

Fine-grained KexiDB error codes

Definition at line 30 of file error.h.

Referenced by KexiDB::Object::setError().

#define ERR_OBJECT_EXISTS   50
 

Definition at line 40 of file error.h.

Referenced by KexiDB::Connection::alterTableName(), KexiDB::Connection::createDatabase(), and KexiDB::Connection::createTable().

#define ERR_OBJECT_NOT_FOUND   60
 

Definition at line 42 of file error.h.

Referenced by KexiDB::Connection::alterTableName(), KexiDB::Connection::databaseExists(), KexiDB::Connection::dropQuery(), KexiDB::Connection::dropTable(), KexiDB::Connection::drv_databaseExists(), and KexiDB::Connection::setupQuerySchema().

#define ERR_OBJECT_THE_SAME   51
 

Definition at line 41 of file error.h.

Referenced by KexiDB::Connection::alterTable(), and KexiDB::Connection::alterTableName().

#define ERR_OTHER   0xffff
 

use this if you have not (yet?) the name for given error

Definition at line 103 of file error.h.

Referenced by KexiDB::Object::setError().

#define ERR_ROLLBACK_OR_COMMIT_TRANSACTION   150
 

error during transaction rollback or commit

Definition at line 52 of file error.h.

Referenced by KexiDB::Connection::commitTransaction(), and KexiDB::Connection::rollbackTransaction().

#define ERR_SINGLE_DB_NAME_MISMATCH   120
 

Definition at line 49 of file error.h.

#define ERR_SQL_EXECUTION_ERROR   260
 

usually returned by Connection::executeSQL()

Definition at line 99 of file error.h.

Referenced by KexiDB::Connection::executeSQL(), and KexiDB::Cursor::open().

#define ERR_SQL_PARSE_ERROR   270
 

Parse error coming from arser::parse().

Definition at line 101 of file error.h.

Referenced by KexiDB::Connection::setupQuerySchema().

#define ERR_SYSTEM_NAME_RESERVED   160
 

(e.g. for table, db, or field name)

Definition at line 53 of file error.h.

Referenced by KexiDB::Connection::createDatabase(), KexiDB::Connection::createTable(), KexiDB::Connection::dropDatabase(), and KexiDB::Connection::dropTable().

#define ERR_TRANSACTION_ACTIVE   80
 

Definition at line 44 of file error.h.

Referenced by KexiDB::Connection::beginTransaction().

#define ERR_UNSUPPORTED_DRV_FEATURE   140
 

given driver's feature is unsupported (eg. transactins)

Definition at line 51 of file error.h.

#define ERR_UPDATE_NO_ENTIRE_MASTER_TABLES_PKEY   194
 

because it does not contain entire master table's primary key

Definition at line 72 of file error.h.

Referenced by KexiDB::Connection::updateRow().

#define ERR_UPDATE_NO_MASTER_TABLE   192
 

is no master table defined

Definition at line 67 of file error.h.

Referenced by KexiDB::Connection::updateRow().

#define ERR_UPDATE_NO_MASTER_TABLES_PKEY   193
 

because it's master table has no primary key defined

Definition at line 69 of file error.h.

Referenced by KexiDB::Connection::updateRow().

#define ERR_UPDATE_NULL_PKEY_FIELD   190
 

null pkey field on updating

Definition at line 65 of file error.h.

Referenced by KexiDB::Connection::updateRow().

#define ERR_UPDATE_SERVER_ERROR   191
 

error @ the server side during data updating

Definition at line 66 of file error.h.

Referenced by KexiDB::Connection::updateRow().

KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:49:01 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003