Remove dynamic exceptions
[anna.git] / example / dbms.mysql / xSelect / main.cpp
index 7a84027..32b23ac 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 @@ Select::Select () :
  * correspondiente y anna.dbms.mysql lo hace autom�ticamente.
  */
 void Select::initialize ()
-   throw (RuntimeException)
+   noexcept(false)
 {
    CommandLine& ccll = CommandLine::instantiate ();
    const char* host = ccll.exists ("host") ? ccll.getValue ("host"): NULL;
@@ -78,13 +78,12 @@ void Select::initialize ()
 }
 
 void Select::run () 
-   throw (RuntimeException)
+   noexcept(false)
 {
    LOGMETHOD (TraceMethod tm ("Select", "run", ANNA_FILE_LOCATION)); 
 
    CommandLine& cl (CommandLine::instantiate ());
    
-   Statement* create;
    Statement* select;
   
    dbms::Integer n (true);