2000-09-01 14:46:32 -04:00
|
|
|
/*
|
|
|
|
|
* Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
|
|
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef LDAP_EXCEPTION_H
|
|
|
|
|
#define LDAP_EXCEPTION_H
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
2000-10-03 14:25:34 -04:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
class LDAPAsynConnection;
|
2000-09-01 14:46:32 -04:00
|
|
|
|
|
|
|
|
class LDAPException{
|
|
|
|
|
|
|
|
|
|
private :
|
|
|
|
|
int m_res_code;
|
2000-10-03 14:25:34 -04:00
|
|
|
string m_res_string;
|
|
|
|
|
string m_err_string;
|
2000-09-01 14:46:32 -04:00
|
|
|
|
|
|
|
|
public :
|
2000-10-03 14:25:34 -04:00
|
|
|
LDAPException(int res_code, const string& err_string=string());
|
2000-09-01 14:46:32 -04:00
|
|
|
LDAPException(const LDAPAsynConnection *lc);
|
2000-10-03 14:25:34 -04:00
|
|
|
virtual ~LDAPException();
|
|
|
|
|
int getResultCode() const;
|
|
|
|
|
const string& getResultMsg() const;
|
2000-09-01 14:46:32 -04:00
|
|
|
friend ostream& operator << (ostream &s, LDAPException e);
|
|
|
|
|
};
|
|
|
|
|
#endif //LDAP_EXCEPTION_H
|