Remove dynamic exceptions
[anna.git] / example / core / threadManager / main.cpp
index 3abe87b..c41c356 100644 (file)
@@ -24,9 +24,9 @@ public:
    MyRunnable () : Runnable () {;}
 
 private:
-   void initialize () throw (RuntimeException);
-   void run () throw (RuntimeException);
-   void terminate () throw ();
+   void initialize () noexcept(false);
+   void run () noexcept(false);
+   void terminate () ;
 
    anna_complete_runnable (MyRunnable);
 };
@@ -78,7 +78,7 @@ int main (const int argc, const char** argv)
 }
 
 void MyRunnable::initialize () 
-   throw (RuntimeException)
+   noexcept(false)
 {
    LOGDEBUG (
       string msg (asString ());
@@ -88,7 +88,7 @@ void MyRunnable::initialize ()
 }
 
 void MyRunnable::run () 
-   throw (RuntimeException)
+   noexcept(false)
 {
    const int delay = rand () % 2000;
 
@@ -103,7 +103,7 @@ void MyRunnable::run ()
 }
 
 void MyRunnable::terminate ()
-   throw ()
+   
 {
    LOGDEBUG (
       string msg (asString ());