Remove dynamic exceptions
[anna.git] / source / comm / Resource.cpp
index 70b1770..3f8ece6 100644 (file)
@@ -17,7 +17,7 @@ using namespace std;
 using namespace anna;
 
 xml::Node* comm::Resource::asXML(xml::Node* parent) const
-throw(RuntimeException) {
+noexcept(false) {
   xml::Node* result = parent->createChild("comm.Resource");
   result->createAttribute("Name", getName());
   result->createAttribute("Enabled", functions::asString(isEnabled()));
@@ -26,7 +26,7 @@ throw(RuntimeException) {
 }
 
 void comm::Resource::asAttribute(xml::Node* node) const
-throw(RuntimeException) {
+noexcept(false) {
   node->createAttribute("Name", getName());
   node->createAttribute("Enabled", functions::asString(isEnabled()));
   node->createAttribute("Available", functions::asString(isAvailable()));