projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add more utilities for ADML-HTTP image
[anna.git]
/
source
/
dbms
/
ResultCode.cpp
diff --git
a/source/dbms/ResultCode.cpp
b/source/dbms/ResultCode.cpp
index
453f78b
..
4a93752
100644
(file)
--- 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
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";
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
}
bool ResultCode::successful() const
-
throw(anna::RuntimeException
) {
+
noexcept(false
) {
if(a_errorDecoder == NULL) {
string msg(asString());
msg += " | Has no decoder for associated error";
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
}
bool ResultCode::locked() const
-
throw(anna::RuntimeException
) {
+
noexcept(false
) {
if(a_errorDecoder == NULL) {
string msg(asString());
msg += " | Has no decoder for associated error";
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
}
bool ResultCode::lostConnection() const
-
throw(anna::RuntimeException
) {
+
noexcept(false
) {
if(a_errorDecoder == NULL) {
string msg(asString());
msg += " | Has no decoder for associated error";
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)
// correcta => no harĂ¡ falta reservar ninguna memoria.
//
void ResultCode::copy(const char* text)
-
throw()
{
+{
if(text == NULL) {
if(a_errorText != NULL) {
free(a_errorText);
if(text == NULL) {
if(a_errorText != NULL) {
free(a_errorText);
@@
-88,7
+88,7
@@
throw() {
}
std::string ResultCode::asString() const
}
std::string ResultCode::asString() const
-
throw()
{
+{
std::string result("dbms::ResultCode { Error: ");
result += functions::asString(a_errorCode);
result += " | Error: ";
std::string result("dbms::ResultCode { Error: ");
result += functions::asString(a_errorCode);
result += " | Error: ";