⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ldapexception.h

📁 OpenLdap是LDAP的开源项目
💻 H
字号:
/* * Copyright 2000, OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */#ifndef LDAP_EXCEPTION_H#define LDAP_EXCEPTION_H#include <iostream>#include <string>class LDAPAsynConnection;/** * This class is only thrown as an Exception and used to signalize error * conditions during LDAP-operations */class LDAPException{			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());		        /**         * Constructs a LDAPException-object from the error state of a         * LDAPAsynConnection-object         * @param lc A LDAP-Connection for that an error has happend. The         *          Constructor tries to read its error state.         */        LDAPException(const LDAPAsynConnection *lc);        /**         * Destructor         */        virtual ~LDAPException();        /**         * @return The Result code of the object         */        		int getResultCode() const;        /**         * @return The error message that is corresponding to the result         *          code .         */		const std::string& getResultMsg() const;                /**         * @return The addional error message of the error (if it was set)         */        const std::string& getServerMsg() const;        /**         * 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);	private :		int m_res_code;		std::string m_res_string;		std::string m_err_string;};#endif //LDAP_EXCEPTION_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -