Remove dynamic exceptions
[anna.git] / source / comm / handler / DatagramSocket.cpp
index 884024e..abc4d5f 100644 (file)
@@ -25,7 +25,7 @@ using namespace std;
 using namespace anna;
 
 void comm::handler::DatagramSocket::initialize()
-throw(RuntimeException) {
+noexcept(false) {
   if(a_datagramSocket == NULL) {
     string msg(asString());
     msg += " | comm::DatagramSocket was not established";
@@ -39,12 +39,12 @@ throw(RuntimeException) {
 }
 
 comm::ClientSocket* comm::handler::DatagramSocket::getClientSocket()
-throw() {
+{
   return a_datagramSocket;
 }
 
 void comm::handler::DatagramSocket::apply()
-throw(RuntimeException) {
+noexcept(false) {
   Guard guard(a_datagramSocket, "anna::comm::DatagramSocket from anna::comm::handler::DatagramSocket::apply");
   comm::DatagramSocket::Notify::_v notify = a_datagramSocket->receive();
 
@@ -88,7 +88,7 @@ throw(RuntimeException) {
  * [Tx] -> Communicator
  */
 void comm::handler::DatagramSocket::finalize()
-throw() {
+{
   if(a_datagramSocket == NULL)
     return;
 
@@ -97,7 +97,7 @@ throw() {
 }
 
 string comm::handler::DatagramSocket::asString() const
-throw() {
+{
   string result("comm::handler::DatagramSocket { ");
   result += comm::Handler::asString();
   result += " | ";
@@ -106,7 +106,7 @@ throw() {
 }
 
 xml::Node* comm::handler::DatagramSocket::asXML(xml::Node* parent) const
-throw() {
+{
   xml::Node* result = parent->createChild("comm.handler.DatagramSocket");
   comm::Handler::asAttribute(result);