X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdiameter%2Fhelpers%2Fbase%2Ffunctions.cpp;fp=source%2Fdiameter%2Fhelpers%2Fbase%2Ffunctions.cpp;h=51a0370e39de6f2ae6295b04ca055c3c35bf7f86;hp=2036053fd460a72e1365078157092220093cad1f;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/diameter/helpers/base/functions.cpp b/source/diameter/helpers/base/functions.cpp index 2036053..51a0370 100644 --- a/source/diameter/helpers/base/functions.cpp +++ b/source/diameter/helpers/base/functions.cpp @@ -26,7 +26,7 @@ using namespace anna::diameter::codec; using namespace anna::diameter::helpers::base; // getters -U32 anna::diameter::helpers::base::functions::getResultCode(const anna::DataBlock & db) throw(anna::RuntimeException) { +U32 anna::diameter::helpers::base::functions::getResultCode(const anna::DataBlock & db) noexcept(false) { if(db.getSize() < Message::HeaderLength) throw anna::RuntimeException("Not enough bytes to cover command header length", ANNA_FILE_LOCATION); @@ -54,7 +54,7 @@ U32 anna::diameter::helpers::base::functions::getResultCode(const anna::DataBloc void anna::diameter::helpers::base::functions::decodeSessionId(const std::string &sessionId, - std::string &diameterIdentity, U32 &high, U32 &low, std::string &optional) throw(anna::RuntimeException) { + std::string &diameterIdentity, U32 &high, U32 &low, std::string &optional) noexcept(false) { // RFC 3588: // // 8.8. Session-Id AVP @@ -125,7 +125,7 @@ void anna::diameter::helpers::base::functions::decodeSessionId(const std::string std::string anna::diameter::helpers::base::functions::getSessionId(const anna::DataBlock & db, - std::string &diameterIdentity, U32 &high, U32 &low, std::string &optional) throw(anna::RuntimeException) { + std::string &diameterIdentity, U32 &high, U32 &low, std::string &optional) noexcept(false) { if(db.getSize() < Message::HeaderLength) throw anna::RuntimeException("Not enough bytes to cover command header length", ANNA_FILE_LOCATION); @@ -151,7 +151,7 @@ std::string anna::diameter::helpers::base::functions::getSessionId(const anna::D } -std::string anna::diameter::helpers::base::functions::getOriginHost(const anna::DataBlock & db) throw(anna::RuntimeException) { +std::string anna::diameter::helpers::base::functions::getOriginHost(const anna::DataBlock & db) noexcept(false) { if(db.getSize() < Message::HeaderLength) throw anna::RuntimeException("Not enough bytes to cover command header length", ANNA_FILE_LOCATION);