Remove dynamic exceptions
[anna.git] / source / comm / INetAddress.cpp
index f9dbd2d..2a6bd18 100644 (file)
@@ -18,7 +18,7 @@ using namespace std;
 using namespace anna;
 
 const comm::Device* comm::INetAddress::getDevice(const bool exceptionWhenNull) const
-throw(RuntimeException) {
+noexcept(false) {
   if(a_device == NULL && exceptionWhenNull == true) {
     string msg(asString());
     msg += " | No device attached";
@@ -29,21 +29,21 @@ throw(RuntimeException) {
 }
 
 string comm::INetAddress::asString() const
-throw() {
+{
   string result("comm::INetAddress { ");
   result += functions::asString(a_device);
   return result += anna::functions::asString(" | Port: %d }", a_port);
 }
 
 string comm::INetAddress::serialize() const
-throw() {
+{
   in_addr_t inaddr = (a_device) ? a_device->getAddress() : 0;
   string result(Device::asString(inaddr));
   return result += anna::functions::asString(".%d", a_port);
 }
 
 xml::Node* comm::INetAddress::asXML(xml::Node* parent) const
-throw(RuntimeException) {
+noexcept(false) {
   xml::Node* result = parent->createChild("comm.INetAddress");
 
   if(a_device != NULL)