Remove dynamic exceptions
[anna.git] / source / dbms / ResultCode.cpp
index 453f78b..4a93752 100644 (file)
@@ -14,7 +14,7 @@ using namespace std;
 using namespace anna::dbms;
 
 bool ResultCode::notFound() const
-throw(anna::RuntimeException) {
+noexcept(false) {
   if(a_errorDecoder == NULL) {
     string msg(asString());
     msg += " | Has no decoder for associated error";
@@ -25,7 +25,7 @@ throw(anna::RuntimeException) {
 }
 
 bool ResultCode::successful() const
-throw(anna::RuntimeException) {
+noexcept(false) {
   if(a_errorDecoder == NULL) {
     string msg(asString());
     msg += " | Has no decoder for associated error";
@@ -36,7 +36,7 @@ throw(anna::RuntimeException) {
 }
 
 bool ResultCode::locked() const
-throw(anna::RuntimeException) {
+noexcept(false) {
   if(a_errorDecoder == NULL) {
     string msg(asString());
     msg += " | Has no decoder for associated error";
@@ -47,7 +47,7 @@ throw(anna::RuntimeException) {
 }
 
 bool ResultCode::lostConnection() const
-throw(anna::RuntimeException) {
+noexcept(false) {
   if(a_errorDecoder == NULL) {
     string msg(asString());
     msg += " | Has no decoder for associated error";
@@ -62,7 +62,7 @@ throw(anna::RuntimeException) {
 // correcta => no harĂ¡ falta reservar ninguna memoria.
 //
 void ResultCode::copy(const char* text)
-throw() {
+{
   if(text == NULL) {
     if(a_errorText != NULL) {
       free(a_errorText);
@@ -88,7 +88,7 @@ throw() {
 }
 
 std::string ResultCode::asString() const
-throw() {
+{
   std::string result("dbms::ResultCode { Error: ");
   result += functions::asString(a_errorCode);
   result += " | Error: ";