Remove noexcept from setBusyTimeout since it may throw (it is also documented)

This commit is contained in:
fekir 2017-08-18 19:03:58 +02:00
parent 697929cfbe
commit db156e6282
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ public:
* *
* @throw SQLite::Exception in case of error * @throw SQLite::Exception in case of error
*/ */
void setBusyTimeout(const int aBusyTimeoutMs) noexcept; // nothrow void setBusyTimeout(const int aBusyTimeoutMs);
/** /**
* @brief Shortcut to execute one or multiple statements without results. * @brief Shortcut to execute one or multiple statements without results.

View File

@ -117,7 +117,7 @@ Database::~Database() noexcept // nothrow
* *
* @throw SQLite::Exception in case of error * @throw SQLite::Exception in case of error
*/ */
void Database::setBusyTimeout(const int aBusyTimeoutMs) noexcept // nothrow void Database::setBusyTimeout(const int aBusyTimeoutMs)
{ {
const int ret = sqlite3_busy_timeout(mpSQLite, aBusyTimeoutMs); const int ret = sqlite3_busy_timeout(mpSQLite, aBusyTimeoutMs);
check(ret); check(ret);