Remove unused Exception constructor

This commit is contained in:
Sébastien Rombauts 2016-07-13 18:32:44 +02:00
parent fd8f50bdd9
commit 91abc3cb44
2 changed files with 0 additions and 16 deletions

View File

@ -75,15 +75,6 @@ public:
*/
Exception(sqlite3* apSQLite, int ret);
/**
* @brief Encapsulation of the error message from SQLite3, based on std::runtime_error.
*
* @param[in] apSQLite The SQLite object, to obtain detailed error messages from.
* @param[in] ret Return value from function call that failed.
* @param[in] aErrorMessage String providing more context, added to the SQLite errmsg
*/
Exception(sqlite3* apSQLite, int ret, const std::string &aErrorMessage);
/// Return the result code (if any, otherwise -1).
int getErrorCode() const noexcept; // nothrow

View File

@ -44,13 +44,6 @@ Exception::Exception(sqlite3* apSQLite, int ret) :
{
}
Exception::Exception(sqlite3* apSQLite, int ret, const std::string &aErrorMessage) :
std::runtime_error(aErrorMessage + ": " + sqlite3_errmsg(apSQLite)),
mErrcode(ret),
mExtendedErrcode(sqlite3_extended_errcode(apSQLite))
{
}
// Return the result code (if any, otherwise -1).
inline int Exception::getErrorCode() const noexcept // nothrow
{