Remove dynamic exceptions
[anna.git] / source / dbms / Sentence.cpp
index 34dfaf3..5ab68be 100644 (file)
@@ -18,13 +18,13 @@ using namespace std;
 using namespace anna;
 
 const string& dbms::Sentence::getName() const
-throw() {
+{
   static string empty;
   return (a_dbStatement == NULL) ? empty : a_dbStatement->getName();
 }
 
 void dbms::Sentence::initialize(dbms::Database& database)
-throw(RuntimeException) {
+noexcept(false) {
   Guard guard(this, "anna::dbms::Sentence (initialize)");
   a_dbStatement = do_initialize(database);
 }
@@ -34,7 +34,7 @@ throw(RuntimeException) {
 // activa externamente ... para recoger datos multiples, etc, etc.
 //-------------------------------------------------------------------------------------
 dbms::ResultCode dbms::Sentence::execute(dbms::Connection& connection, dbms::Statement* statement)
-throw(RuntimeException) {
+noexcept(false) {
   using namespace anna::dbms;
   ResultCode result;
 
@@ -59,7 +59,7 @@ throw(RuntimeException) {
 }
 
 bool dbms::Sentence::fetch()
-throw(RuntimeException) {
+noexcept(false) {
   bool result = false;
 
   try {
@@ -73,7 +73,7 @@ throw(RuntimeException) {
 
 string dbms::Sentence::asString() const
 /*virtual*/
-throw() {
+{
   string result("dbms::Sentence { Mode: ");
   result += (a_mode == Mode::SilentWhenNotFound) ? "SilentWhenNotFound" : "ExceptionWhenNotFound";
   result += " | ";
@@ -88,7 +88,7 @@ throw() {
 
 /*virtual*/
 xml::Node* dbms::Sentence::asXML(xml::Node* parent) const
-throw() {
+{
   xml::Node* result = parent->createChild("dbms.Sentence");
   result->createAttribute("Mode", (a_mode == Mode::SilentWhenNotFound) ? "SilentWhenNotFound" : "ExceptionWhenNotFound");