mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Merge pull request #96 from couchbasedeps/master
Fixed link errors calling Exception::getErrorCode()
This commit is contained in:
commit
bfd8bb2c63
@ -76,10 +76,14 @@ public:
|
||||
Exception(sqlite3* apSQLite, int ret);
|
||||
|
||||
/// Return the result code (if any, otherwise -1).
|
||||
int getErrorCode() const noexcept; // nothrow
|
||||
int getErrorCode() const noexcept { // nothrow
|
||||
return mErrcode;
|
||||
}
|
||||
|
||||
/// Return the extended numeric result code (if any, otherwise -1).
|
||||
int getExtendedErrorCode() const noexcept; // nothrow
|
||||
int getExtendedErrorCode() const noexcept { // nothrow
|
||||
return mExtendedErrcode;
|
||||
}
|
||||
|
||||
/// Return a string, solely based on the error code
|
||||
const char* getErrorStr() const noexcept; // nothrow
|
||||
|
@ -44,20 +44,8 @@ Exception::Exception(sqlite3* apSQLite, int ret) :
|
||||
{
|
||||
}
|
||||
|
||||
// Return the result code (if any, otherwise -1).
|
||||
inline int Exception::getErrorCode() const noexcept // nothrow
|
||||
{
|
||||
return mErrcode;
|
||||
}
|
||||
|
||||
// Return the extended numeric result code (if any, otherwise -1).
|
||||
inline int Exception::getExtendedErrorCode() const noexcept // nothrow
|
||||
{
|
||||
return mExtendedErrcode;
|
||||
}
|
||||
|
||||
// Return a string, solely based on the error code
|
||||
inline const char* Exception::getErrorStr() const noexcept // nothrow
|
||||
const char* Exception::getErrorStr() const noexcept // nothrow
|
||||
{
|
||||
return sqlite3_errstr(mErrcode);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user