Remove dynamic exceptions
[anna.git] / source / dbms / Connection.cpp
index 9dcdcb5..a6cda56 100644 (file)
@@ -24,7 +24,7 @@ using namespace anna;
 // (1) Si no tiene variables de salida => consideramos que es un update, insert o delete.
 //-----------------------------------------------------------------------------------------------------------
 dbms::ResultCode dbms::Connection::execute(Statement* statement)
-throw(RuntimeException, dbms::DatabaseException) {
+noexcept(false) {
   if(statement == NULL) {
     string msg(asString());
     msg += " | Cannot execute a NULL sentence";
@@ -110,7 +110,7 @@ throw(RuntimeException, dbms::DatabaseException) {
 // y los volcados de contexto.
 //------------------------------------------------------------------------------------------------
 void dbms::Connection::commit()
-throw(RuntimeException, dbms::DatabaseException) {
+noexcept(false) {
   LOGINFORMATION(
     string msg("dbms::Connection::commit | ");
     msg += asString();
@@ -133,7 +133,7 @@ throw(RuntimeException, dbms::DatabaseException) {
 // y los volcados de contexto.
 //------------------------------------------------------------------------------------------------
 void dbms::Connection::rollback()
-throw() {
+{
   LOGWARNING(
     string msg("dbms::Connection::rollback | ");
     msg += asString();
@@ -152,7 +152,7 @@ throw() {
 }
 
 void dbms::Connection::lock()
-throw(RuntimeException) {
+noexcept(false) {
   if(isAvailable() == false) {
     string msg(asString());
     msg += " | Unavailable connection";
@@ -181,7 +181,7 @@ throw(RuntimeException) {
 }
 
 void dbms::Connection::unlock()
-throw() {
+{
   LOGDEBUG(
     string msg("dbms::Connection::unlock | ");
     msg += asString();
@@ -205,7 +205,7 @@ throw() {
 }
 
 string dbms::Connection::asString() const
-throw() {
+{
   string result("dbms::Connection { ");
   result += comm::Resource::asString();
   result += " | ";
@@ -219,7 +219,7 @@ throw() {
 }
 
 xml::Node* dbms::Connection::asXML(xml::Node* parent) const
-throw() {
+{
   xml::Node* result = comm::Resource::asXML(parent);
   result->createAttribute("User", a_user);
   result->createAttribute("LockingCounter", a_lockingCounter);