diff --git a/include/SQLiteCpp/Exception.h b/include/SQLiteCpp/Exception.h index 0afbb86..32bfe46 100644 --- a/include/SQLiteCpp/Exception.h +++ b/include/SQLiteCpp/Exception.h @@ -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 diff --git a/src/Exception.cpp b/src/Exception.cpp index 7b1a931..9e356c0 100644 --- a/src/Exception.cpp +++ b/src/Exception.cpp @@ -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 {