*/
class LDAPException{
- public :
+ public :
/**
* Constructs a LDAPException-object from the parameters
* @param res_code A valid LDAP result code.
* @param err_string An addional error message for the error
* that happend (optional)
*/
- LDAPException(int res_code, const std::string& err_string=std::string());
+ LDAPException(int res_code,
+ const std::string& err_string=std::string());
/**
* Constructs a LDAPException-object from the error state of a
/**
* @return The Result code of the object
*/
-
- int getResultCode() const;
+ int getResultCode() const;
/**
* @return The error message that is corresponding to the result
* code .
*/
- const std::string& getResultMsg() const;
+ const std::string& getResultMsg() const;
/**
* @return The addional error message of the error (if it was set)
* This method can be used to dump the data of a LDAPResult-Object.
* It is only useful for debugging purposes at the moment
*/
- friend std::ostream& operator << (std::ostream &s, LDAPException e);
+ friend std::ostream& operator << (std::ostream &s, LDAPException e);
- private :
- int m_res_code;
- std::string m_res_string;
- std::string m_err_string;
+ private :
+ int m_res_code;
+ std::string m_res_string;
+ std::string m_err_string;
};
#endif //LDAP_EXCEPTION_H