Remove dynamic exceptions
[anna.git] / source / diameter / stack / Command.cpp
index 57a12f1..3fa3ac9 100644 (file)
@@ -21,7 +21,7 @@
 //------------------------------------------------------------------------------
 //-------------------------------------------------------- Command::addAvpRule()
 //------------------------------------------------------------------------------
-void anna::diameter::stack::Command::addAvpRule(const AvpRule & avpRule) throw(anna::RuntimeException) {
+void anna::diameter::stack::Command::addAvpRule(const AvpRule & avpRule) noexcept(false) {
   if(avpRule.isFixed()) {
     if(!a_allowFixedRule) {
       std::string s_ex = anna::functions::asString("Incorrect position for fixed avp rule '<%s>' within command '%s'", avpRule.getAvpName().c_str(), getName().c_str());
@@ -45,7 +45,7 @@ void anna::diameter::stack::Command::addAvpRule(const AvpRule & avpRule) throw(a
 //------------------------------------------------------------------------------
 //----------------------------------------------------------- Command::isChild()
 //------------------------------------------------------------------------------
-bool anna::diameter::stack::Command::isChild(const AvpId & avpId) const throw() {
+bool anna::diameter::stack::Command::isChild(const AvpId & avpId) const {
   for(const_avprule_iterator it = avprule_begin(); it != avprule_end(); it++)
     if(avpId == ((*it).second.getId()))
       return true;
@@ -57,7 +57,7 @@ bool anna::diameter::stack::Command::isChild(const AvpId & avpId) const throw()
 //------------------------------------------------------------------------------
 //---------------------------------------------------------- Command::asString()
 //------------------------------------------------------------------------------
-std::string anna::diameter::stack::Command::asString(void) const throw() {
+std::string anna::diameter::stack::Command::asString(void) const {
   std::string trace;
   //trace = "Command '";
   trace = "'";
@@ -89,7 +89,7 @@ std::string anna::diameter::stack::Command::asString(void) const throw() {
 //------------------------------------------------------------------------------
 //------------------------------------------------------------- Command::asXML()
 //------------------------------------------------------------------------------
-anna::xml::Node* anna::diameter::stack::Command::asXML(anna::xml::Node* parent) const throw() {
+anna::xml::Node* anna::diameter::stack::Command::asXML(anna::xml::Node* parent) const {
 //   <!ELEMENT command (avprule*)>
 //   <!ATTLIST command name CDATA #REQUIRED code CDATA #REQUIRED type (Request | Answer) #REQUIRED>
   anna::xml::Node* result = parent->createChild("command");