X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdbms%2FResultCode.cpp;fp=source%2Fdbms%2FResultCode.cpp;h=4a9375266b6a982167a9d8cab7b1002883d96b47;hp=453f78bb1759e950b79e91655cd9d4653cc0995e;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/dbms/ResultCode.cpp b/source/dbms/ResultCode.cpp index 453f78b..4a93752 100644 --- a/source/dbms/ResultCode.cpp +++ b/source/dbms/ResultCode.cpp @@ -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: ";