summaryrefslogtreecommitdiff
path: root/libsql/osqlerror.h
authormickeyl <mickeyl>2003-08-10 15:42:26 (UTC)
committer mickeyl <mickeyl>2003-08-10 15:42:26 (UTC)
commit90dbd3e9e7139c1280e71f9c77ed4362b8d0f367 (patch) (side-by-side diff)
tree22f0947337ea9b21a1d8f56d04ce3292c9d6f19e /libsql/osqlerror.h
parent616e919ff6aea6a30e18edb37128c229e806beae (diff)
downloadopie-90dbd3e9e7139c1280e71f9c77ed4362b8d0f367.zip
opie-90dbd3e9e7139c1280e71f9c77ed4362b8d0f367.tar.gz
opie-90dbd3e9e7139c1280e71f9c77ed4362b8d0f367.tar.bz2
libsql is now a part of libopie2
Diffstat (limited to 'libsql/osqlerror.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libsql/osqlerror.h59
1 files changed, 0 insertions, 59 deletions
diff --git a/libsql/osqlerror.h b/libsql/osqlerror.h
deleted file mode 100644
index 35a4368..0000000
--- a/libsql/osqlerror.h
+++ b/dev/null
@@ -1,59 +0,0 @@
-#ifndef OSQL_ERROR_H
-#define OSQL_ERROR_H
-
-#include <qstring.h>
-#include <qvaluelist.h>
-
-/**
- * OSQLError is the base class of all errors
- */
-class OSQLError {
-public:
- typedef QValueList<OSQLError> ValueList;
- enum Type { None = 0, // NoError
- Internal, // Internal Error in OSQL
- Unknown, // Unknown Error
- Transaction, // Transaction Error
- Statement, // Wrong Statement
- Connection, // Connection Error( lost )
- Driver // Driver Specefic error
- };
- enum DriverError {
- DriverInternal=0, // internal DriverError
- Permission, // Permission Problem
- Abort, // Abort of the SQL
- Busy, // Busy Error
- Locked, // Locked
- NoMem, // No Memory
- ReadOnly, // Database is read only
- Interrupt, // Interrupt
- IOErr, // IO Error
- Corrupt, // Database Corruption
- NotFound, // Table not Found
- Full, // Full
- CantOpen, // Can not open Table/Database
- Protocol, // internal protocol error
- Schema, // schema changed
- TooBig, // Data too big
- Mismatch, // Type mismatch
- Misuse // misuse
- };
- OSQLError( const QString& driverText = QString::null,
- const QString& driverDatabaseText = QString::null,
- int type = None, int subNumber = -1 );
- ~OSQLError();
-
- QString driverText()const;
- QString databaseText()const;
- int type()const;
- int subNumber()const;
-private:
- QString m_drvText;
- QString m_drvDBText;
- int m_type;
- int m_number;
- class OSQLErrorPrivate;
- OSQLErrorPrivate* d;
-};
-
-#endif