diff options
-rw-r--r-- | src/dal/dataprovider.h | 9 | ||||
-rw-r--r-- | src/dal/sqlitedataprovider.cpp | 3 | ||||
-rw-r--r-- | src/dal/sqlitedataprovider.h | 9 |
3 files changed, 6 insertions, 15 deletions
diff --git a/src/dal/dataprovider.h b/src/dal/dataprovider.h index 83d1c8c1..b066ea50 100644 --- a/src/dal/dataprovider.h +++ b/src/dal/dataprovider.h @@ -137,24 +137,21 @@ class DataProvider * * @exception std::runtime_error if a transaction is still open */ - virtual void beginTransaction() - throw (std::runtime_error) = 0; + virtual void beginTransaction() = 0; /** * Commits a transaction. * * @exception std::runtime_error if no connection is currently open. */ - virtual void commitTransaction() - throw (std::runtime_error) = 0; + virtual void commitTransaction() = 0; /** * Rollback a transaction. * * @exception std::runtime_error if no connection is currently open. */ - virtual void rollbackTransaction() - throw (std::runtime_error) = 0; + virtual void rollbackTransaction() = 0; /** * Returns whether the data provider is currently in a transaction. diff --git a/src/dal/sqlitedataprovider.cpp b/src/dal/sqlitedataprovider.cpp index 73df8f76..d83dc274 100644 --- a/src/dal/sqlitedataprovider.cpp +++ b/src/dal/sqlitedataprovider.cpp @@ -204,7 +204,6 @@ void SqLiteDataProvider::disconnect() } void SqLiteDataProvider::beginTransaction() - throw (std::runtime_error) { if (!mIsConnected) { @@ -238,7 +237,6 @@ void SqLiteDataProvider::beginTransaction() } void SqLiteDataProvider::commitTransaction() - throw (std::runtime_error) { if (!mIsConnected) { @@ -272,7 +270,6 @@ void SqLiteDataProvider::commitTransaction() } void SqLiteDataProvider::rollbackTransaction() - throw (std::runtime_error) { if (!mIsConnected) { diff --git a/src/dal/sqlitedataprovider.h b/src/dal/sqlitedataprovider.h index 107290b2..c5966299 100644 --- a/src/dal/sqlitedataprovider.h +++ b/src/dal/sqlitedataprovider.h @@ -82,24 +82,21 @@ class SqLiteDataProvider: public DataProvider * * @exception std::runtime_error if a transaction is still open */ - void beginTransaction() - throw (std::runtime_error); + void beginTransaction(); /** * Commits a transaction. * * @exception std::runtime_error if no connection is currently open. */ - void commitTransaction() - throw (std::runtime_error); + void commitTransaction(); /** * Rollback a transaction. * * @exception std::runtime_error if no connection is currently open. */ - void rollbackTransaction() - throw (std::runtime_error); + void rollbackTransaction(); /** * Returns wheter the connection has a open transaction or is in auto- |