Remove dynamic exceptions
[anna.git] / source / comm / Device.cpp
index 039755b..0bc5766 100644 (file)
@@ -18,14 +18,14 @@ using namespace std;
 using namespace anna;
 
 string comm::Device::asString() const
-throw() {
+{
   string result("comm::Device { IP: ");
   result += asString(a_address);
   return result += anna::functions::asString(" | Status: %s }", (a_status == Status::Up) ? "Up" : "Down");
 }
 
 xml::Node* comm::Device::asXML(xml::Node* parent) const
-throw(RuntimeException) {
+noexcept(false) {
   xml::Node* result = parent->createChild("comm.Device");
   result->createAttribute("IP", asString(a_address));
   result->createAttribute("Status", (a_status == Status::Up) ? "Up" : "Down");
@@ -33,13 +33,13 @@ throw(RuntimeException) {
 }
 
 void comm::Device::asAttribute(xml::Node* node) const
-throw(RuntimeException) {
+noexcept(false) {
   node->createAttribute("IP", asString(a_address));
   node->createAttribute("Status", (a_status == Status::Up) ? "Up" : "Down");
 }
 
 std::string comm::Device::asString(const in_addr_t& address)
-throw() {
+{
   struct in_addr in;
   in.s_addr = address;
   return string(inet_ntoa(in));