X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fldap%2FResponse.cpp;fp=source%2Fldap%2FResponse.cpp;h=2fdbdcf70d54e19312ded6a7e4048dc2dff82308;hp=861cc6cc68ad3dfa0fcc544c1a7ff0b1aa816c98;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/ldap/Response.cpp b/source/ldap/Response.cpp index 861cc6c..2fdbdcf 100644 --- a/source/ldap/Response.cpp +++ b/source/ldap/Response.cpp @@ -22,7 +22,7 @@ ldap::Response::response_pool ldap::Response::st_responses; // Se invocan desde ldap::Session //---------------------------------------------------------------------------------------- ldap::Response* ldap::Response::instance(const ClassCode::_v classCode, const IdMessage idMessage) -throw(RuntimeException) { +noexcept(false) { ldap::Response* result = st_responses.create(); result->a_classCode = classCode; result->a_idMessage = idMessage; @@ -36,7 +36,7 @@ throw(RuntimeException) { } void ldap::Response::release(ldap::Response* response) -throw() { +{ try { st_responses.release(response); } catch(Exception& ex) { @@ -53,7 +53,7 @@ ldap::Response::Response() : } void ldap::Response::clear() -throw() { +{ a_session = NULL; a_resultCode.clear(); a_name.clear(); @@ -68,12 +68,12 @@ throw() { } void ldap::Response::activateTimer() -throw(RuntimeException) { +noexcept(false) { a_timer = TimerManager::instantiate().createTimer(this); } void ldap::Response::cancelTimer() -throw() { +{ if(a_timer != NULL) { try { TimerManager::instantiate().cancel(a_timer); @@ -86,14 +86,14 @@ throw() { } ldap::Attribute* ldap::Response::createAttribute(const string& name) -throw(RuntimeException) { +noexcept(false) { Attribute* result = a_attributes.create(); result->setName(name); return result; } string ldap::Response::asString() const -throw() { +{ string result("ldap::Response { "); result += ClassCode::asString(a_classCode); result += functions::asText(" | IdMessage: ", a_idMessage);