#define DoErrorCode(methodName,macroName) \
bool anna::ldap::ResultCode::methodName () const \
- throw () \
+ \
{ \
return a_value == (macroName); \
}
#define DoErrorRange(methodName,rangeName) \
bool anna::ldap::ResultCode::methodName () const \
- throw () \
+ \
{ \
return rangeName (a_value) != 0; \
}
* que el método invicado devuelva 0, pero indique el código de error el extraError.
*/
anna::ldap::ResultCode& anna::ldap::ResultCode::operator= (const int ldap_method_result)
-throw() {
+{
if((a_value = ldap_method_result) != LDAP_SUCCESS) {
const char* text = ldap_err2string(ldap_method_result);
a_text = (text == NULL) ? "<undefined>" : text;
}
void anna::ldap::ResultCode::setValue(const int ldap_method_result, const int ldap_method_error)
-throw() {
+{
if(ldap_method_result != LDAP_SUCCESS)
operator= (ldap_method_result);
else
}
const string anna::ldap::ResultCode::asString() const
-throw() {
+{
string result(functions::asText("ldap::ResultCode { Value: ", a_value));
if(a_text.empty() == false) {
}
bool anna::ldap::ResultCode::extractResultCode(const Session* session)
-throw() {
+{
LDAP* handle = (LDAP*)((Session*) session)->getLDAP();
int result = -1;