| 64 | } |
| 65 | |
| 66 | void CppSQLite3Exception::throwException(int nErrCode, char* errMessage) |
| 67 | { |
| 68 | if (errMessage) |
| 69 | { |
| 70 | CString str(errMessage); |
| 71 | ::sqlite3_free(errMessage); |
| 72 | throw CppSQLite3Exception(nErrCode, str); |
| 73 | } |
| 74 | else |
| 75 | { |
| 76 | throw CppSQLite3Exception(nErrCode, ""); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | const char* CppSQLite3Exception::errorCodeAsString(int nErrCode) |
| 81 | { |
nothing calls this directly
no test coverage detected