X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fhttp%2Fwims20RServer%2Fmain.cpp;fp=example%2Fhttp%2Fwims20RServer%2Fmain.cpp;h=36f728de30c99e66a626c95ea5e69e6abdab3171;hp=f56c20f70d60ad201a47dc7f61be649c7aa59787;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/http/wims20RServer/main.cpp b/example/http/wims20RServer/main.cpp index f56c20f..36f728d 100644 --- a/example/http/wims20RServer/main.cpp +++ b/example/http/wims20RServer/main.cpp @@ -44,15 +44,15 @@ class MyHandler : public http::Handler { public: MyHandler () : http::Handler ("wims20_rserver::MyHandler"), a_request (NULL) {;} - static const char* className () throw () { return "wims20_rserver::ReceiverFactory"; } + static const char* className () { return "wims20_rserver::ReceiverFactory"; } private: MyCommunicator* a_communicator; http::wims20::ServerSide* a_request; - 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 HTTPArithmeticServer : public comm::Application { @@ -64,8 +64,8 @@ private: ReceiverFactoryImpl a_receiverFactory; comm::ServerSocket* a_serverSocket; - void initialize () throw (RuntimeException); - void run () throw (RuntimeException); + void initialize () noexcept(false); + void run () noexcept(false); }; using namespace std; @@ -109,7 +109,7 @@ HTTPArithmeticServer::HTTPArithmeticServer () : } void HTTPArithmeticServer::initialize () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -123,7 +123,7 @@ void HTTPArithmeticServer::initialize () } void HTTPArithmeticServer::run () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -136,7 +136,7 @@ void HTTPArithmeticServer::run () } void MyHandler::initialize () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -162,7 +162,7 @@ void MyHandler::initialize () // Observar que la correspondería con las parte other_possible_levels // de la especificación WIMS 2.0 void MyHandler::evRequest (ClientSocket& clientSocket, const http::Request& request) - throw (RuntimeException) + noexcept(false) { LOGMETHOD (TraceMethod tm ("MyReceiver", "apply", ANNA_FILE_LOCATION));