Remove dynamic exceptions
[anna.git] / source / dbms / Date.cpp
index 5c9afaf..f8811e4 100644 (file)
@@ -47,7 +47,7 @@ Date::~Date() {
 }
 
 const char* dbms::Date::getCStringValue() const
-throw() {
+{
   const char* format;
 
   if((format = a_format) == NULL)
@@ -57,7 +57,7 @@ throw() {
 }
 
 Date& Date::operator = (const Date & other)
-throw(RuntimeException) {
+noexcept(false) {
   if(this != &other) {
     if(other.isNull() == true) {
       setNull(true);
@@ -72,7 +72,7 @@ throw(RuntimeException) {
 }
 
 void Date::setValue(const char* str)
-throw(RuntimeException) {
+noexcept(false) {
   if(a_format == NULL) {
     string msg(asString());
     msg += "  | anna::dbms::Data::setValue (const char*) requires format especification";
@@ -95,7 +95,7 @@ throw(RuntimeException) {
 }
 
 void Date::setValue(const Second &second)
-throw(RuntimeException) {
+noexcept(false) {
   tm* aux = localtime((time_t*) & second);
 
   if(aux == NULL) {
@@ -110,7 +110,7 @@ throw(RuntimeException) {
 }
 
 void dbms::Date::set(const char* what, int& variable, const int value, const int min, const int max)
-throw(RuntimeException) {
+noexcept(false) {
   if(value < min) {
     string msg(what);
     msg += functions::asText(" must be greater than or equal to ", min);
@@ -128,7 +128,7 @@ throw(RuntimeException) {
 }
 
 string dbms::Date::asString() const
-throw() {
+{
   const char* cstring;
   string result("dbms::Date { ");
   result += dbms::Data::asString();