X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fhttp%2Fserver%2Fmain.cpp;fp=example%2Fhttp%2Fserver%2Fmain.cpp;h=c2849a014ec339990a1cf94e6dd4c956b0256936;hp=494342deeb1222aea76e7d8254fc2e456a547f0a;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/http/server/main.cpp b/example/http/server/main.cpp index 494342d..c2849a0 100644 --- a/example/http/server/main.cpp +++ b/example/http/server/main.cpp @@ -47,8 +47,8 @@ private: test::Request a_testRequest; test::Response a_testResponse; - void evRequest (ClientSocket&, const http::Request& request) throw (RuntimeException); - void evResponse (ClientSocket&, const http::Response&) throw (RuntimeException) {;} + void evRequest (ClientSocket&, const http::Request& request) noexcept(false); + void evResponse (ClientSocket&, const http::Response&) noexcept(false) {;} }; class MyCommunicator : public test::Communicator { @@ -60,7 +60,7 @@ public: private: ThreadData a_contexts; - void eventReceiveMessage (comm::ClientSocket&, const Message&) throw (RuntimeException); + void eventReceiveMessage (comm::ClientSocket&, const Message&) noexcept(false); }; class HTTPArithmeticServer : public comm::Application { @@ -71,9 +71,9 @@ private: MyCommunicator a_communicator; 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; @@ -120,7 +120,7 @@ HTTPArithmeticServer::HTTPArithmeticServer () : } void HTTPArithmeticServer::initialize () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -131,7 +131,7 @@ void HTTPArithmeticServer::initialize () } void HTTPArithmeticServer::run () - throw (RuntimeException) + noexcept(false) { CommandLine& cl (CommandLine::instantiate ()); @@ -153,7 +153,7 @@ void HTTPArithmeticServer::run () } xml::Node* HTTPArithmeticServer::asXML (xml::Node* app) const - throw () + { xml::Node* node = app::Application::asXML (app); @@ -164,7 +164,7 @@ xml::Node* HTTPArithmeticServer::asXML (xml::Node* app) const } void MyCommunicator::eventReceiveMessage (ClientSocket& clientSocket, const Message& message) - throw (RuntimeException) + noexcept(false) { LOGMETHOD (TraceMethod tm ("MyCommunicator", "eventReceiveMessage", ANNA_FILE_LOCATION)); @@ -182,7 +182,7 @@ void MyCommunicator::eventReceiveMessage (ClientSocket& clientSocket, const Mess } void MyHandler::evRequest (ClientSocket& clientSocket, const http::Request& request) - throw (RuntimeException) + noexcept(false) { const DataBlock& body = request.getBody ();