Remove dynamic exceptions
[anna.git] / example / http / xmlRServer / main.cpp
index f9f4307..5790ce6 100644 (file)
@@ -47,7 +47,7 @@ public:
    ~MyHandler () {
    }
 
-   static const char* className () throw () { return "http_rserver::ReceiverFactory"; }
+   static const char* className () { return "http_rserver::ReceiverFactory"; }
 
 private:
    struct Attribute { enum _v { ValueOne, ValueTwo, Operator, Result, Time, Max }; };
@@ -57,9 +57,9 @@ private:
    xml::Node* a_xmlResponse;
    xml::Attribute* a_xmlAttributes [Attribute::Max];
    
-   void initialize () throw (RuntimeException);
-   void evRequest (ClientSocket&, const http::Request& request) throw (RuntimeException);
-   void evResponse (ClientSocket&, const http::Response&) throw (RuntimeException) {;}
+   void initialize () noexcept(false);
+   void evRequest (ClientSocket&, const http::Request& request) noexcept(false);
+   void evResponse (ClientSocket&, const http::Response&) noexcept(false) {;}
 };
 
 class WIMS20ArithmeticServer : public comm::Application {
@@ -71,9 +71,9 @@ private:
    ReceiverFactoryImpl <MyHandler> a_receiverFactory;
    comm::ServerSocket* a_serverSocket;
 
-   void initialize () throw (RuntimeException);
-   void run () throw (RuntimeException);
-   xml::Node* asXML (xml::Node* app) const throw ();
+   void initialize () noexcept(false);
+   void run () noexcept(false);
+   xml::Node* asXML (xml::Node* app) const ;
 };
 
 using namespace std;
@@ -121,7 +121,7 @@ WIMS20ArithmeticServer::WIMS20ArithmeticServer () :
 }
 
 void WIMS20ArithmeticServer::initialize () 
-   throw (RuntimeException)
+   noexcept(false)
 {
    CommandLine& cl (CommandLine::instantiate ());
 
@@ -138,7 +138,7 @@ void WIMS20ArithmeticServer::initialize ()
 }
 
 void WIMS20ArithmeticServer::run ()
-   throw (RuntimeException)
+   noexcept(false)
 {
    CommandLine& cl (CommandLine::instantiate ());
 
@@ -160,7 +160,7 @@ void WIMS20ArithmeticServer::run ()
 }
 
 xml::Node* WIMS20ArithmeticServer::asXML (xml::Node* app) const 
-   throw ()
+   
 {
    xml::Node* node = app::Application::asXML (app);
    
@@ -171,7 +171,7 @@ xml::Node* WIMS20ArithmeticServer::asXML (xml::Node* app) const
 }
 
 void MyHandler::initialize ()
-   throw (RuntimeException)
+   noexcept(false)
 {
    a_communicator = app::functions::component <test::Communicator> (ANNA_FILE_LOCATION);
    
@@ -191,7 +191,7 @@ void MyHandler::initialize ()
  * Recibe una peticion
  */
 void MyHandler::evRequest (ClientSocket& clientSocket, const http::Request& httpRequest)
-   throw (RuntimeException)
+   noexcept(false)
 {
    LOGMETHOD (TraceMethod tm ("MyReceiver", "apply", ANNA_FILE_LOCATION));