| 36 | #define CPPSQLITE_ERROR 1000 |
| 37 | |
| 38 | class CppSQLite3Exception |
| 39 | { |
| 40 | public: |
| 41 | |
| 42 | CppSQLite3Exception(const int nErrCode, const CString& errMessage); |
| 43 | CppSQLite3Exception(const CppSQLite3Exception& e); |
| 44 | |
| 45 | virtual ~CppSQLite3Exception() {} |
| 46 | |
| 47 | int errorCode() const { return mnErrCode; } |
| 48 | const CString& errorMessage() const { return msErrMessage; } |
| 49 | |
| 50 | static const char* errorCodeAsString(int nErrCode); |
| 51 | |
| 52 | public: |
| 53 | static void throwException(int nErrCode, char* errMessage); |
| 54 | |
| 55 | private: |
| 56 | int mnErrCode; |
| 57 | CString msErrMessage; |
| 58 | }; |
| 59 | |
| 60 | |
| 61 | class CppSQLite3Query |
no outgoing calls
no test coverage detected