Remove dynamic exceptions
[anna.git] / include / anna / diameter / helpers / base / functions.hpp
index c500b97..db2499b 100644 (file)
@@ -48,7 +48,7 @@ struct functions {
   *
   * @return Result-Code value
   */
-  static U32 getResultCode(const anna::DataBlock &) throw(anna::RuntimeException);
+  static U32 getResultCode(const anna::DataBlock &) noexcept(false);
 
   /**
   * Gets the tokenized by ';' Session-Id contents defined as '<DiameterIdentity>;<high 32 bits>;<low 32 bits>[;<optional value>]':
@@ -59,7 +59,7 @@ struct functions {
   * @param low Low 64-bit-sequence part
   * @param optional Empty string when missing
   */
-  static void decodeSessionId(const std::string &sessionId, std::string &diameterIdentity, U32 &high, U32 &low, std::string &optional) throw(anna::RuntimeException);
+  static void decodeSessionId(const std::string &sessionId, std::string &diameterIdentity, U32 &high, U32 &low, std::string &optional) noexcept(false);
 
   /**
   * Gets the fixed Session-Id AVP (UTF8String) from datablock provided.
@@ -73,7 +73,7 @@ struct functions {
   *
   * @return Session-Id
   */
-  static std::string getSessionId(const anna::DataBlock &db, std::string &diameterIdentity, U32 &high, U32 &low, std::string &optional) throw(anna::RuntimeException);
+  static std::string getSessionId(const anna::DataBlock &db, std::string &diameterIdentity, U32 &high, U32 &low, std::string &optional) noexcept(false);
 
 
   /**
@@ -83,7 +83,7 @@ struct functions {
   *
   * @return Session-Id
   */
-  static std::string getSessionId(const anna::DataBlock &db) throw(anna::RuntimeException) {
+  static std::string getSessionId(const anna::DataBlock &db) noexcept(false) {
     std::string dummy1, dummy4;
     U32 dummy2, dummy3;
     return (getSessionId(db, dummy1, dummy2, dummy3, dummy4));
@@ -97,7 +97,7 @@ struct functions {
   *
   * @return Origin-Host
   */
-  static std::string getOriginHost(const anna::DataBlock &db) throw(anna::RuntimeException);
+  static std::string getOriginHost(const anna::DataBlock &db) noexcept(false);
 };