Back to index

openldap  2.4.31
Functions
LDAPException.cpp File Reference
#include <ldap.h>
#include "config.h"
#include "LDAPException.h"
#include "LDAPAsynConnection.h"
#include "LDAPResult.h"

Go to the source code of this file.

Functions

ostream & operator<< (ostream &s, LDAPException e) throw ()

Function Documentation

ostream& operator<< ( std::ostream &  s,
LDAPException  e 
) throw ()

It is only useful for debugging purposes at the moment

Definition at line 73 of file LDAPException.cpp.

{
       s << "Error " << e.m_res_code << ": " << e.m_res_string;
       if (!e.m_err_string.empty()) {
              s << endl <<  "additional info: " << e.m_err_string ;
       }
       return s;
}