mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 17:56:13 -04:00
Remove unused Exception constructor
This commit is contained in:
parent
fd8f50bdd9
commit
91abc3cb44
@ -75,15 +75,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
Exception(sqlite3* apSQLite, int ret);
|
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).
|
/// Return the result code (if any, otherwise -1).
|
||||||
int getErrorCode() const noexcept; // nothrow
|
int getErrorCode() const noexcept; // nothrow
|
||||||
|
|
||||||
|
@ -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).
|
// Return the result code (if any, otherwise -1).
|
||||||
inline int Exception::getErrorCode() const noexcept // nothrow
|
inline int Exception::getErrorCode() const noexcept // nothrow
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user