Remove dynamic exceptions
[anna.git] / source / diameter.comm / Response.cpp
index b2d108d..9676a03 100644 (file)
@@ -27,7 +27,7 @@ diameter::comm::Response::response_pool diameter::comm::Response::st_responses;
 // Se invocan desde diameter::comm::Session
 //----------------------------------------------------------------------------------------
 diameter::comm::Response* diameter::comm::Response::instance(const ClassCode::_v & classCode, const HopByHop hopByHop)
-throw(anna::RuntimeException) {
+noexcept(false) {
   diameter::comm::Response* result = st_responses.create();
   result->a_classCode = classCode;
   result->a_hopByHop = hopByHop;
@@ -41,7 +41,7 @@ throw(anna::RuntimeException) {
 }
 
 void diameter::comm::Response::release(diameter::comm::Response* response)
-throw() {
+{
   try {
     st_responses.release(response);
   } catch(anna::RuntimeException& ex) {
@@ -58,7 +58,7 @@ diameter::comm::Response::Response() :
 }
 
 void diameter::comm::Response::clear()
-throw() {
+{
   a_resultCode = ResultCode::Undefined;
   a_session = NULL;
   a_timer = NULL;
@@ -66,12 +66,12 @@ throw() {
 }
 
 void diameter::comm::Response::activateTimer()
-throw(anna::RuntimeException) {
+noexcept(false) {
   a_timer = TimerManager::instantiate().createTimer(this);
 }
 
 void diameter::comm::Response::cancelTimer()
-throw() {
+{
   if(a_timer != NULL) {
     try {
       TimerManager::instantiate().cancelTimer(a_timer);
@@ -84,13 +84,13 @@ throw() {
 }
 
 const char* diameter::comm::Response::asText(const ResultCode::_v rc)
-throw() {
+{
   static const char* text [] = { "Undefined", "Success", "Timeout", "DiameterUnavailable" };
   return text [rc];
 }
 
 //bool diameter::comm::Response::isKeepAlive() const
-//throw() {
+//{
 //   if (a_request) {
 //      if (a_request->getCommandId() == diameter::helpers::base::COMMANDID__Device_Watchdog_Request)
 //         return true;
@@ -100,7 +100,7 @@ throw() {
 //}
 
 string diameter::comm::Response::asString() const
-throw() {
+{
   string result("diameter::comm::Response { ClassCode: ");
   result += ClassCode::asText(a_classCode);
   result += anna::functions::asString(" | HopByHop: %u", a_hopByHop);