Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osqlerror.h

Go to the documentation of this file.
00001 #ifndef OSQL_ERROR_H
00002 #define OSQL_ERROR_H
00003 
00004 #include <qstring.h>
00005 #include <qvaluelist.h>
00006 
00007 
00008 namespace Opie {
00009 namespace DB {
00013 class OSQLError {
00014 public:
00015     typedef QValueList<OSQLError> ValueList;
00016     enum Type { None = 0, // NoError
00017                 Internal, // Internal Error in OSQL
00018                 Unknown, // Unknown Error
00019                 Transaction, // Transaction Error
00020                 Statement, // Wrong Statement
00021                 Connection, // Connection Error( lost )
00022                 Driver // Driver Specefic error
00023     };
00024     enum DriverError {
00025         DriverInternal=0, // internal DriverError
00026         Permission, // Permission Problem
00027         Abort, // Abort of the SQL
00028         Busy, // Busy Error
00029         Locked, // Locked
00030         NoMem, // No Memory
00031         ReadOnly, // Database is read only
00032         Interrupt, // Interrupt
00033         IOErr, // IO Error
00034         Corrupt, // Database Corruption
00035         NotFound, // Table not Found
00036         Full, // Full
00037         CantOpen, // Can not open Table/Database
00038         Protocol, // internal protocol error
00039         Schema, // schema changed
00040         TooBig, // Data too big
00041         Mismatch, // Type mismatch
00042         Misuse // misuse
00043     };
00044     OSQLError( const QString& driverText = QString::null,
00045                const QString& driverDatabaseText = QString::null,
00046                int type = None, int subNumber = -1 );
00047     ~OSQLError();
00048 
00049     QString driverText()const;
00050     QString databaseText()const;
00051     int type()const;
00052     int subNumber()const;
00053 private:
00054     QString m_drvText;
00055     QString m_drvDBText;
00056     int m_type;
00057     int m_number;
00058     class OSQLErrorPrivate;
00059     OSQLErrorPrivate* d;
00060 };
00061 
00062 }
00063 }
00064 #endif

Generated on Sat Nov 5 16:16:10 2005 for OPIE by  doxygen 1.4.2