Remove dynamic exceptions
[anna.git] / source / core / util / EncodedData.cpp
index e818814..16816eb 100644 (file)
@@ -18,7 +18,7 @@ using namespace std;
 using namespace anna;
 
 void EncodedData::initialize(const xml::Node* parent)
-throw(RuntimeException) {
+noexcept(false) {
   if(fromBCD(parent->find("Key1")->getAttribute("Value")->getValue(), a_value) != sizeof(DES_key_schedule))
     throw RuntimeException("anna::EncodedData::initialize | Key1 no valida", ANNA_FILE_LOCATION);
 
@@ -44,7 +44,7 @@ throw(RuntimeException) {
 }
 
 xml::Node* EncodedData::asXML(xml::Node* parent) const
-throw(RuntimeException) {
+noexcept(false) {
   parent->createAttribute("Mode", "DES3");
   xml::Node* node;
   string aux;
@@ -63,7 +63,7 @@ throw(RuntimeException) {
 }
 
 const std::string& EncodedData::asBCD(const DataBlock& source, string& result)
-throw() {
+{
   result = "";
   const char* data = source.getData();
   int c;
@@ -81,7 +81,7 @@ throw() {
 }
 
 int EncodedData::fromBCD(const string& source, DataBlock& result)
-throw() {
+{
   result.clear();
   const char* data = source.c_str();
   int len = 0, maxlen = source.length();