Remove dynamic exceptions
[anna.git] / source / comm / transport / SureTransport.cpp
index 2317325..1111740 100644 (file)
@@ -30,7 +30,7 @@ comm::SureTransport::~SureTransport() {
 }
 
 int comm::SureTransport::calculeSize(const DataBlock& dataBlock)
-throw(RuntimeException) {
+noexcept(false) {
   const char* buffer = dataBlock.getData();
   int result = -1;
 
@@ -49,7 +49,7 @@ throw(RuntimeException) {
 // (1) Transfiere la referencia de message al cuerpo del mensaje. Ojo!! tampoco hace copia.
 //-------------------------------------------------------------------------------------------
 const comm::Message* comm::SureTransport::decode(const DataBlock& message)
-throw(RuntimeException) {
+noexcept(false) {
   const int totalSize = message.getSize();
 
   if(totalSize < headerSize)
@@ -73,7 +73,7 @@ throw(RuntimeException) {
 // Etiquta de comienzo 0xaaaa + short (<longitud ttal>) + datos
 //---------------------------------------------------------------------------
 const DataBlock& comm::SureTransport::code(comm::Message& message)
-throw(RuntimeException) {
+noexcept(false) {
   char aux [sizeof(int)];
   const DataBlock& data = message.code();
   a_forCode = a_precodec;