Remove dynamic exceptions
[anna.git] / source / diameter / codec / basetypes / Address.cpp
index b58a6fd..f0e5c14 100644 (file)
@@ -18,7 +18,7 @@
 //------------------------------------------------------------------------------
 //------------------------------------------------------- Address::updateBasic()
 //------------------------------------------------------------------------------
-void anna::diameter::codec::basetypes::Address::updateBasic() throw(anna::RuntimeException) {
+void anna::diameter::codec::basetypes::Address::updateBasic() noexcept(false) {
   std::string result;
   // address version
   result.push_back((S8)(a_address.Version >> 8));
@@ -114,7 +114,7 @@ void anna::diameter::codec::basetypes::Address::updateBasic() throw(anna::Runtim
 //------------------------------------------------------------------------------
 //------------------------------------------------ Address::setPrintableString()
 //------------------------------------------------------------------------------
-void anna::diameter::codec::basetypes::Address::setPrintableString(const char * printableString) throw(anna::RuntimeException) {
+void anna::diameter::codec::basetypes::Address::setPrintableString(const char * printableString) noexcept(false) {
   // First: User will update child class members
   // Auxiliary
   iana_address_t address;
@@ -153,7 +153,7 @@ void anna::diameter::codec::basetypes::Address::setPrintableString(const char *
 //------------------------------------------------------------------------------
 //------------------------------------------------ Address::setPrintableString()
 //------------------------------------------------------------------------------
-std::string anna::diameter::codec::basetypes::Address::asPrintableString() throw(anna::RuntimeException) {
+std::string anna::diameter::codec::basetypes::Address::asPrintableString() noexcept(false) {
   bool knownPrintablePresentation = (a_address.isIPv4() || a_address.isIPv6() || a_address.isE164());
 
   if(!knownPrintablePresentation)
@@ -166,7 +166,7 @@ std::string anna::diameter::codec::basetypes::Address::asPrintableString() throw
 //------------------------------------------------------------------------------
 //------------------------------------------------------------ Address::decode()
 //------------------------------------------------------------------------------
-void anna::diameter::codec::basetypes::Address::decode(const char* buffer, const int size) throw(anna::RuntimeException) {
+void anna::diameter::codec::basetypes::Address::decode(const char* buffer, const int size) noexcept(false) {
   if(!buffer)
     throw anna::RuntimeException("Address::decode | Null Buffer provided", ANNA_FILE_LOCATION);