Remove dynamic exceptions
[anna.git] / example / dbms.mysql / xInsert / main.cpp
index d52b9a1..61d1d49 100644 (file)
@@ -23,8 +23,8 @@ public:
 private:
    anna::dbms::Database* a_db;
 
-   void initialize () throw (RuntimeException); 
-   void run () throw (RuntimeException);      
+   void initialize () noexcept(false); 
+   void run () noexcept(false);      
 };
 
 using namespace std;
@@ -68,7 +68,7 @@ Insert::Insert () :
  * correspondiente y anna.dbms.mysql lo hace autom�ticamente.
  */
 void Insert::initialize ()
-   throw (RuntimeException)
+   noexcept(false)
 {
    CommandLine& ccll = CommandLine::instantiate ();
    const char* host = ccll.exists ("host") ? ccll.getValue ("host"): NULL;
@@ -78,7 +78,7 @@ void Insert::initialize ()
 }
 
 void Insert::run () 
-   throw (RuntimeException)
+   noexcept(false)
 {
    LOGMETHOD (TraceMethod tm ("Insert", "run", ANNA_FILE_LOCATION));