MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / throwException

Method throwException

src/database/cppsqlite3.cpp:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void 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
80const char* CppSQLite3Exception::errorCodeAsString(int nErrCode)
81{

Callers

nothing calls this directly

Calls 1

CppSQLite3ExceptionClass · 0.85

Tested by

no test coverage detected