]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/src/LDAPException.cpp
- improvments on schema parsing
[openldap] / contrib / ldapc++ / src / LDAPException.cpp
index 5038df613b794eba9b005dc54c49949e0b0496dd..26dcbe47ffd7bd00985617e391291efe64fd8939 100644 (file)
 using namespace std;
 
 LDAPException::LDAPException(int res_code, const string& err_string){
-       m_res_code=res_code;
-       m_res_string=string(ldap_err2string(res_code));
+    m_res_code=res_code;
+    m_res_string=string(ldap_err2string(res_code));
     m_err_string=err_string;
 }
 
 LDAPException::LDAPException(const LDAPAsynConnection *lc){
-       m_err_string=string();
-       m_res_string=string();
-       LDAP *l = lc->getSessionHandle();
-       ldap_get_option(l,LDAP_OPT_ERROR_NUMBER,&m_res_code);
-       m_res_string=string(ldap_err2string(m_res_code));
+    m_err_string=string();
+    m_res_string=string();
+    LDAP *l = lc->getSessionHandle();
+    ldap_get_option(l,LDAP_OPT_ERROR_NUMBER,&m_res_code);
+    m_res_string=string(ldap_err2string(m_res_code));
     char* err_string;
-       ldap_get_option(l,LDAP_OPT_ERROR_STRING,&err_string);
+    ldap_get_option(l,LDAP_OPT_ERROR_STRING,&err_string);
     m_err_string=string(err_string);
 }
 
@@ -35,11 +35,11 @@ LDAPException::~LDAPException(){
 }
 
 int LDAPException::getResultCode() const{
-       return m_res_code;
+    return m_res_code;
 }
 
 const string& LDAPException::getResultMsg() const{
-       return m_res_string;
+    return m_res_string;
 }
 
 const string& LDAPException::getServerMsg() const{