Remove dynamic exceptions
[anna.git] / source / diameter.comm / Transport.cpp
index eda7e6e..b85ad8b 100644 (file)
@@ -34,7 +34,7 @@ Transport::~Transport() {
  * La longitud se calcula con los primeros 4 bytes (el primer byte se ignora, pues es la version diameter)
  */
 int Transport::calculeSize(const anna::DataBlock& dataBlock)
-throw(anna::RuntimeException) {
+noexcept(false) {
   const int size = dataBlock.getSize();
 
   if(size < 4)
@@ -48,7 +48,7 @@ throw(anna::RuntimeException) {
 }
 
 const anna::DataBlock& Transport::code(anna::comm::Message& message)
-throw(anna::RuntimeException) {
+noexcept(false) {
   LOGMETHOD(anna::TraceMethod ttmm(anna::Logger::Local7, "anna::diameter::comm::Transport", "code", ANNA_FILE_LOCATION));
   a_forCode = message.code();
   return a_forCode;
@@ -59,7 +59,7 @@ throw(anna::RuntimeException) {
 // Cada ClientSocket tiene su anna::diameter::comm::Transport asociado
 //--------------------------------------------------------------------------------
 const anna::comm::Message* Transport::decode(const anna::DataBlock& input)
-throw(anna::RuntimeException) {
+noexcept(false) {
   anna::comm::Message* inputMessage = static_cast <anna::comm::Message*>(getInputMessage());
   inputMessage->setBody(input);
   return inputMessage;