Remove dynamic exceptions
[anna.git] / include / anna / diameter / app / dcca / huawei / Message.hpp
index e1659e2..943ced4 100644 (file)
@@ -1,37 +1,9 @@
-// ANNA - Anna is Not 'N' Anymore
-//
-// (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo
-//
-// https://bitbucket.org/testillano/anna
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-//
-//     * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-//     * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following disclaimer
-// in the documentation and/or other materials provided with the
-// distribution.
-//     * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived from
-// this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-// Authors: eduardo.ramos.testillano@gmail.com
-//          cisco.tierra@gmail.com
+// ANNA - Anna is Not Nothingness Anymore                                                         //
+//                                                                                                //
+// (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
+//                                                                                                //
+// See project site at http://redmine.teslayout.com/projects/anna-suite                           //
+// See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
 
 
 #ifndef anna_diameter_app_dcca_huawei_Message_hpp
@@ -79,7 +51,7 @@ public:
      Avp PS-Information pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const anna::diameter::codec::Avp * getPSInformation(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const anna::diameter::codec::Avp * getPSInformation(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information);
@@ -90,7 +62,7 @@ public:
      Avp Called-Station-Id data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const UTF8String * getCalledStationId(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const UTF8String * getCalledStationId(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information)->
@@ -102,7 +74,7 @@ public:
      Avp 3GPP-PDP-Type data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const Unsigned32 * get3GPPPDPType(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const Unsigned32 * get3GPPPDPType(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information)->
@@ -114,7 +86,7 @@ public:
      Avp 3GPP-SGSN-MCC-MNC data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const UTF8String * get3GPPSGSNMCCMNC(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const UTF8String * get3GPPSGSNMCCMNC(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information)->
@@ -126,7 +98,7 @@ public:
      Avp 3GPP-Charging-Characteristics data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const UTF8String * get3GPPChargingCharacteristics(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const UTF8String * get3GPPChargingCharacteristics(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information)->
@@ -138,7 +110,7 @@ public:
      Avp 3GPP-GPRS-Neg-QoS-Profile data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const UTF8String * get3GPPGPRSNegQoSProfile(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const UTF8String * get3GPPGPRSNegQoSProfile(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information)->
@@ -150,7 +122,7 @@ public:
      Avp CG-Address data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const Address * getCGAddress(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const Address * getCGAddress(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information)->
@@ -162,7 +134,7 @@ public:
      Avp 3GPP-Rat-Type data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const OctetString * get3GPPRatType(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const OctetString * get3GPPRatType(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information)->
@@ -174,7 +146,7 @@ public:
      Avp SGSN-Address data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const Address * getSGSNAddress(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const Address * getSGSNAddress(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information)->
@@ -186,7 +158,7 @@ public:
      Avp GGSN-Address data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const Address * getGGSNAddress(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const Address * getGGSNAddress(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information)->
@@ -198,7 +170,7 @@ public:
      Avp 3GPP-Charging-Id data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const Unsigned32 * get3GPPChargingId(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const Unsigned32 * get3GPPChargingId(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information)->
@@ -210,7 +182,7 @@ public:
      Avp Reporting-Reason data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const Enumerated * getReportingReason(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const Enumerated * getReportingReason(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(return getAvp(helpers::dcca::AVPID__Multiple_Services_Credit_Control)->getAvp(helpers::tgpp::AVPID__Reporting_Reason)->getEnumerated());
   }
 
@@ -218,7 +190,7 @@ public:
      Avp Trigger-Type data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const Enumerated * getTriggerType(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const Enumerated * getTriggerType(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::dcca::AVPID__Multiple_Services_Credit_Control)->
                getAvp(helpers::tgpp::AVPID__Trigger)->
@@ -230,7 +202,7 @@ public:
      Avp PS-Furnish-Charging-Information pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const anna::diameter::codec::Avp * getPSFurnishChargingInformation(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const anna::diameter::codec::Avp * getPSFurnishChargingInformation(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::dcca::AVPID__Multiple_Services_Credit_Control)->
                getAvp(helpers::tgpp::AVPID__PS_Furnish_Charging_Information);
@@ -241,7 +213,7 @@ public:
      Avp PS-Free-Format-Data data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const OctetString * getPSFreeFormatData(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const OctetString * getPSFreeFormatData(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::dcca::AVPID__Multiple_Services_Credit_Control)->
                getAvp(helpers::tgpp::AVPID__PS_Furnish_Charging_Information)->
@@ -253,7 +225,7 @@ public:
      Avp PS-Append-Free-Format-Data data-part pointer reference
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const Enumerated * getPSAppendFreeFormatData(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const Enumerated * getPSAppendFreeFormatData(anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::dcca::AVPID__Multiple_Services_Credit_Control)->
                getAvp(helpers::tgpp::AVPID__PS_Furnish_Charging_Information)->
@@ -266,7 +238,7 @@ public:
      @param ocurrence Select the n-th PDP-Address within the PS-Information. First by default.
      @param emode Excepcion mode handling when avp is not found: Ignore (no action is taken but debug trace), Throw (exception launched, by default), Trace (trace warning).
   */
-  const Address * getPDPAddress(int ocurrence = 1, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) throw(anna::RuntimeException) {
+  const Address * getPDPAddress(int ocurrence = 1, anna::Exception::Mode::_v emode = anna::Exception::Mode::Throw) noexcept(false) {
     ASSERT_APP_GETAVP(
       return   getAvp(helpers::tgpp::AVPID__Service_Information)->
                getAvp(helpers::tgpp::AVPID__PS_Information)->