Remove dynamic exceptions
[anna.git] / example / comm / blocker / main.cpp
index 354d9b0..c166abf 100644 (file)
@@ -31,7 +31,7 @@ public:
    MyCommunicator () {;}
       
 private:
-   void eventReceiveMessage (comm::ClientSocket&, const Message&) throw (RuntimeException);
+   void eventReceiveMessage (comm::ClientSocket&, const Message&) noexcept(false);
 };
 
 class Blocker : public comm::Application {
@@ -42,8 +42,8 @@ private:
    MyCommunicator a_communicator;
    comm::ServerSocket* a_blockerSocket;
 
-   void initialize () throw (RuntimeException);
-   void run () throw (RuntimeException);
+   void initialize () noexcept(false);
+   void run () noexcept(false);
 };
 
 using namespace std;
@@ -88,7 +88,7 @@ Blocker::Blocker () :
 // Inicializa el servidor de sockets.
 //-----------------------------------------------------------------------------------------
 void Blocker::initialize () 
-   throw (RuntimeException)
+   noexcept(false)
 {
    CommandLine& cl (CommandLine::instantiate ());
 
@@ -104,7 +104,7 @@ void Blocker::initialize ()
 // Cuando hay un nuevo mensaje invocar�a Communicator::eventReceiveMessage
 //-----------------------------------------------------------------------------------------
 void Blocker::run ()
-   throw (RuntimeException)
+   noexcept(false)
 {
    CommandLine& cl (CommandLine::instantiate ());
 
@@ -120,7 +120,7 @@ void Blocker::run ()
 // Cuando recibe el primer mensaje deja al sistema bloqueado esperando una tecla.
 //-----------------------------------------------------------------------------------------
 void MyCommunicator::eventReceiveMessage (ClientSocket& clientSocket, const Message& message)
-   throw (RuntimeException)
+   noexcept(false)
 {
    LOGMETHOD (TraceMethod tm ("MyCommunicator", "eventReceiveMessage", ANNA_FILE_LOCATION));
    static bool blocking = true;