Remove dynamic exceptions
[anna.git] / source / dbms.mysql / Connection.cpp
index aae802c..f32884b 100644 (file)
@@ -27,7 +27,7 @@ mysql::Connection::Connection(Database& database, const std::string& name, const
 }
 
 void mysql::Connection::open()
-throw(dbms::DatabaseException) {
+noexcept(false) {
   if(a_mysql != NULL) {
     LOGWARNING(
       string msg = asString();
@@ -60,7 +60,7 @@ throw(dbms::DatabaseException) {
 }
 
 void mysql::Connection::close()
-throw() {
+{
   LOGINFORMATION(
     string msg("anna::dbms::mysql::Connection::close | ");
     msg += asString();
@@ -79,12 +79,12 @@ throw() {
 }
 
 void mysql::Connection::do_commit()
-throw(RuntimeException, dbms::DatabaseException) {
+noexcept(false) {
   anna_dbms_mysql_check(mysql_commit(a_mysql), a_mysql);
 }
 
 void mysql::Connection::do_rollback()
-throw() {
+{
   try {
     anna_dbms_mysql_check(mysql_rollback(a_mysql), a_mysql);
   } catch(Exception& ex) {
@@ -93,7 +93,7 @@ throw() {
 }
 
 string mysql::Connection::asString() const
-throw() {
+{
   string result("dbms::mysql::Connection { ");
   result += dbms::Connection::asString();
   result += " | Context: ";