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";
}
bool ResultCode::successful() const
-throw(anna::RuntimeException) {
+noexcept(false) {
if(a_errorDecoder == NULL) {
string msg(asString());
msg += " | Has no decoder for associated error";
}
bool ResultCode::locked() const
-throw(anna::RuntimeException) {
+noexcept(false) {
if(a_errorDecoder == NULL) {
string msg(asString());
msg += " | Has no decoder for associated error";
}
bool ResultCode::lostConnection() const
-throw(anna::RuntimeException) {
+noexcept(false) {
if(a_errorDecoder == NULL) {
string msg(asString());
msg += " | Has no decoder for associated error";
// correcta => no harĂ¡ falta reservar ninguna memoria.
//
void ResultCode::copy(const char* text)
-throw() {
+{
if(text == NULL) {
if(a_errorText != NULL) {
free(a_errorText);
}
std::string ResultCode::asString() const
-throw() {
+{
std::string result("dbms::ResultCode { Error: ");
result += functions::asString(a_errorCode);
result += " | Error: ";