Remove dynamic exceptions
[anna.git] / source / comm / transport / LiteTransport.cpp
index 9df4092..0f39c0b 100644 (file)
@@ -26,13 +26,13 @@ comm::LiteTransport::~LiteTransport() {
 }
 
 int comm::LiteTransport::calculeSize(const DataBlock& dataBlock)
-throw(RuntimeException) {
+noexcept(false) {
   const char* buffer = dataBlock.getData();
   return (dataBlock.getSize() >= headerSize) ? functions::decodeShort(buffer) + headerSize : -1;
 }
 
 const comm::Message* comm::LiteTransport::decode(const DataBlock& message)
-throw(RuntimeException) {
+noexcept(false) {
   const int totalSize = message.getSize();
 
   if(totalSize < headerSize)
@@ -48,7 +48,7 @@ throw(RuntimeException) {
 }
 
 const DataBlock& comm::LiteTransport::code(comm::Message& message)
-throw(RuntimeException) {
+noexcept(false) {
   char aux [sizeof(int)];
   const DataBlock& data = message.code();
   a_forCode.clear();