Remove dynamic exceptions
[anna.git] / example / diameter / rxSimpleTest / MyCommunicator.cpp
index 777ac2f..e48bd01 100755 (executable)
@@ -15,7 +15,7 @@
 #include <MyCommunicator.hpp>
 
 
-void MyCommunicator::prepareAnswer(anna::diameter::codec::Message *answer, const anna::DataBlock &request) const throw() {
+void MyCommunicator::prepareAnswer(anna::diameter::codec::Message *answer, const anna::DataBlock &request) const {
   // Sequence values (hop-by-hop and end-to-end), session-id and subscription-id avps, are mirrored to the peer which sent the request.
   // If user wants to test a specific answer without changing it, use send operations better than programming.
   // Sequence substitution:
@@ -62,19 +62,19 @@ void MyCommunicator::prepareAnswer(anna::diameter::codec::Message *answer, const
 
 // HTTP
 void MyCommunicator::eventReceiveMessage(anna::comm::ClientSocket& clientSocket, const anna::comm::Message& message)
-throw(anna::RuntimeException) {
+noexcept(false) {
   LOGMETHOD(anna::TraceMethod tm("MyCommunicator", "eventReceiveMessage", ANNA_FILE_LOCATION));
 }
 
 void MyCommunicator::eventBreakConnection(Server* server)
-throw() {
+{
   LOGMETHOD(anna::TraceMethod tm("MyCommunicator", "eventBreakConnection", ANNA_FILE_LOCATION));
   terminate();
   anna::comm::Communicator::eventBreakConnection(server);
 }
 
 void MyCommunicator::terminate()
-throw() {
+{
   if(hasRequestedStop() == true)
     return;