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 {
private:
ThreadData <MyHandler> a_contexts;
- void eventReceiveMessage (comm::ClientSocket&, const Message&) throw (RuntimeException);
+ void eventReceiveMessage (comm::ClientSocket&, const Message&) noexcept(false);
};
class HTTPArithmeticServer : public comm::Application {
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;
}
void HTTPArithmeticServer::initialize ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
}
void HTTPArithmeticServer::run ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cl (CommandLine::instantiate ());
}
xml::Node* HTTPArithmeticServer::asXML (xml::Node* app) const
- throw ()
+
{
xml::Node* node = app::Application::asXML (app);
}
void MyCommunicator::eventReceiveMessage (ClientSocket& clientSocket, const Message& message)
- throw (RuntimeException)
+ noexcept(false)
{
LOGMETHOD (TraceMethod tm ("MyCommunicator", "eventReceiveMessage", ANNA_FILE_LOCATION));
}
void MyHandler::evRequest (ClientSocket& clientSocket, const http::Request& request)
- throw (RuntimeException)
+ noexcept(false)
{
const DataBlock& body = request.getBody ();