X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fhttp%2FrServer%2Fmain.cpp;h=99c6f4a9d9484513dffca00a19e98686e6d3eb20;hp=8bfea3c9e6035d88f76c2cf03e80ed697e908892;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/http/rServer/main.cpp b/example/http/rServer/main.cpp index 8bfea3c..99c6f4a 100644 --- a/example/http/rServer/main.cpp +++ b/example/http/rServer/main.cpp @@ -48,16 +48,16 @@ class MyHandler : public http::Handler { public: MyHandler () : http::Handler ("http_rserver::MyHandler") {;} - static const char* className () throw () { return "http_rserver::ReceiverFactory"; } + static const char* className () { return "http_rserver::ReceiverFactory"; } private: MyCommunicator* a_communicator; test::Request a_testRequest; test::Response a_testResponse; - 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 { @@ -69,9 +69,9 @@ private: ReceiverFactoryImpl 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; @@ -119,7 +119,7 @@ HTTPArithmeticServer::HTTPArithmeticServer () : } void HTTPArithmeticServer::initialize () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -136,7 +136,7 @@ void HTTPArithmeticServer::initialize () } void HTTPArithmeticServer::run () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -158,7 +158,7 @@ void HTTPArithmeticServer::run () } xml::Node* HTTPArithmeticServer::asXML (xml::Node* app) const - throw () + { xml::Node* node = app::Application::asXML (app); @@ -169,14 +169,14 @@ xml::Node* HTTPArithmeticServer::asXML (xml::Node* app) const } void MyHandler::initialize () - throw (RuntimeException) + noexcept(false) { a_communicator = app::functions::component (ANNA_FILE_LOCATION); allocateResponse ()->createHeader (http::Header::Type::Date); } void MyHandler::evRequest (ClientSocket& clientSocket, const http::Request& request) - throw (RuntimeException) + noexcept(false) { LOGMETHOD (TraceMethod tm ("MyReceiver", "apply", ANNA_FILE_LOCATION));