Remove dynamic exceptions
[anna.git] / source / dbms / ShortBlock.cpp
index a47de5f..867ce5a 100644 (file)
@@ -13,7 +13,7 @@
 using namespace anna;
 
 dbms::ShortBlock& dbms::ShortBlock::operator = (const dbms::ShortBlock & other)
-throw(RuntimeException) {
+noexcept(false) {
   if(this == &other)
     return *this;
 
@@ -26,7 +26,7 @@ throw(RuntimeException) {
 }
 
 dbms::ShortBlock& dbms::ShortBlock::operator = (const anna::DataBlock & value)
-throw(RuntimeException) {
+noexcept(false) {
   if(value.getSize() > Data::getMaxSize()) {
     throw RuntimeException(
       functions::asString(
@@ -42,7 +42,7 @@ throw(RuntimeException) {
 }
 
 std::string dbms::ShortBlock::asString() const
-throw() {
+{
   std::string result("dbms::ShortBlock { ");
   result += dbms::Data::asString();
   result += " | Value: ";