Remove dynamic exceptions
[anna.git] / example / diameter / launcher / MyLocalServer.hpp
index 4613173..17caf35 100644 (file)
@@ -24,16 +24,16 @@ namespace anna {
 
 class MyLocalServer : public anna::diameter::comm::LocalServer {
 
-  void eventResponse(const anna::diameter::comm::Response&) throw(anna::RuntimeException);
-  void eventRequest(anna::diameter::comm::ServerSession *, const anna::DataBlock&) throw(anna::RuntimeException);
-  void eventUnknownResponse(anna::diameter::comm::ServerSession *, const anna::DataBlock&) throw(anna::RuntimeException);
-  void eventDPA(anna::diameter::comm::ServerSession *, const anna::DataBlock&) throw(anna::RuntimeException);
+  void eventResponse(const anna::diameter::comm::Response&) noexcept(false);
+  void eventRequest(anna::diameter::comm::ServerSession *, const anna::DataBlock&) noexcept(false);
+  void eventUnknownResponse(anna::diameter::comm::ServerSession *, const anna::DataBlock&) noexcept(false);
+  void eventDPA(anna::diameter::comm::ServerSession *, const anna::DataBlock&) noexcept(false);
 
 public:
   virtual ~MyLocalServer() {;}
 
   anna::diameter::codec::MessagesDeque a_reactingAnswers;
-  anna::diameter::codec::MessagesDeque *getReactingAnswers() throw() { return (anna::diameter::codec::MessagesDeque*)&a_reactingAnswers; }
+  anna::diameter::codec::MessagesDeque *getReactingAnswers() { return (anna::diameter::codec::MessagesDeque*)&a_reactingAnswers; }
 };
 
 #endif