X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdiameter%2Fcodec%2Fbasetypes%2FAddress.cpp;fp=source%2Fdiameter%2Fcodec%2Fbasetypes%2FAddress.cpp;h=f0e5c147157b0ce3a37798534eab014e430c22ec;hp=b58a6fd7573c2a129cfb3870dec9b818b6026712;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/diameter/codec/basetypes/Address.cpp b/source/diameter/codec/basetypes/Address.cpp index b58a6fd..f0e5c14 100644 --- a/source/diameter/codec/basetypes/Address.cpp +++ b/source/diameter/codec/basetypes/Address.cpp @@ -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);