Remove dynamic exceptions
[anna.git] / example / diameter / rxSimpleTest / rxSimpleTest.cpp
index 95a3580..12fde94 100755 (executable)
@@ -41,7 +41,7 @@ RxSimpleTest::RxSimpleTest() : anna::comm::Application("rxSimpleTest", "RxSimple
   a_workingNode = NULL;
 }
 
-void RxSimpleTest::startService() throw(anna::RuntimeException) {
+void RxSimpleTest::startService() noexcept(false) {
 
   // Stacks
   anna::diameter::stack::Engine &stackEngine = anna::diameter::stack::Engine::instantiate();
@@ -147,7 +147,7 @@ void RxSimpleTest::startService() throw(anna::RuntimeException) {
   ohm.registerOriginHost(originHostName, a_workingNode);
 }
 
-anna::diameter::comm::OriginHost *RxSimpleTest::getOriginHost(const std::string &name) const throw(anna::RuntimeException) {
+anna::diameter::comm::OriginHost *RxSimpleTest::getOriginHost(const std::string &name) const noexcept(false) {
   anna::diameter::comm::OriginHostManager &ohm = anna::diameter::comm::OriginHostManager::instantiate();
   anna::diameter::comm::OriginHost *result = ohm.getOriginHost(name);
 
@@ -157,14 +157,14 @@ anna::diameter::comm::OriginHost *RxSimpleTest::getOriginHost(const std::string
   return result;
 }
 
-MyDiameterEntity *RxSimpleTest::getEntity() const throw(anna::RuntimeException) {
+MyDiameterEntity *RxSimpleTest::getEntity() const noexcept(false) {
   MyDiameterEntity *result = (MyDiameterEntity *)(a_workingNode->getEntity());
   if (!result)
     throw anna::RuntimeException("No entity created", ANNA_FILE_LOCATION);
   return result;
 }
 
-MyLocalServer *RxSimpleTest::getServer() const throw(anna::RuntimeException) {
+MyLocalServer *RxSimpleTest::getServer() const noexcept(false) {
   MyLocalServer *result = (MyLocalServer *)(a_workingNode->getDiameterServer());
   if (!result)
     throw anna::RuntimeException("No local server created", ANNA_FILE_LOCATION);
@@ -172,7 +172,7 @@ MyLocalServer *RxSimpleTest::getServer() const throw(anna::RuntimeException) {
 }
 
 void RxSimpleTest::initialize()
-throw(anna::RuntimeException) {
+noexcept(false) {
   anna::comm::Application::initialize();
   CommandLine& cl(anna::CommandLine::instantiate());
   anna::comm::Communicator::WorkMode::_v workMode(anna::comm::Communicator::WorkMode::Single);
@@ -183,7 +183,7 @@ throw(anna::RuntimeException) {
 }
 
 void RxSimpleTest::run()
-throw(anna::RuntimeException) {
+noexcept(false) {
   LOGMETHOD(anna::TraceMethod tm("RxSimpleTest", "run", ANNA_FILE_LOCATION));
   anna::diameter::stack::Engine::instantiate();
 
@@ -216,7 +216,7 @@ throw(anna::RuntimeException) {
 }
 
 anna::xml::Node* RxSimpleTest::asXML(anna::xml::Node* parent) const
-throw() {
+{
   anna::xml::Node* result = parent->createChild("rxSimpleTest");
   anna::comm::Application::asXML(result);
   // Timming: