Remove dynamic exceptions
[anna.git] / source / ldap / ResultCode.cpp
index 9c25486..c1311e4 100644 (file)
@@ -18,7 +18,7 @@ using namespace std;
 
 #define DoErrorCode(methodName,macroName) \
    bool anna::ldap::ResultCode::methodName () const \
-      throw () \
+       \
    { \
       return a_value == (macroName); \
    }
@@ -41,7 +41,7 @@ DoErrorCode(isConnectError, LDAP_CONNECT_ERROR)
 
 #define DoErrorRange(methodName,rangeName) \
    bool anna::ldap::ResultCode::methodName () const \
-      throw () \
+       \
    { \
       return rangeName (a_value) != 0; \
    }
@@ -68,7 +68,7 @@ anna::ldap::ResultCode::ResultCode(const int ldap_method_result) :
  * 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;
@@ -78,7 +78,7 @@ throw() {
 }
 
 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
@@ -86,7 +86,7 @@ throw() {
 }
 
 const string  anna::ldap::ResultCode::asString() const
-throw() {
+{
   string result(functions::asText("ldap::ResultCode { Value: ", a_value));
 
   if(a_text.empty() == false) {
@@ -98,7 +98,7 @@ throw() {
 }
 
 bool anna::ldap::ResultCode::extractResultCode(const Session* session)
-throw() {
+{
   LDAP* handle = (LDAP*)((Session*) session)->getLDAP();
   int result = -1;