]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPReferralException.h
- some minor bugfixes
[openldap] / contrib / ldapc++ / src / LDAPReferralException.h
1 /*
2  * Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6
7 #ifndef LDAP_REFERRAL_EXCEPTION_H
8 #define LDAP_REFERRAL_EXCEPTION_H
9
10 #include <list>
11 #include "LDAPMessage.h"
12 #include "LDAPUrlList.h"
13
14 class LDAPUrlList;
15
16 /**
17  * This class extends LDAPException and is used to signalize Referrals
18  * there were received during synchronous LDAP-operations
19  */
20 class LDAPReferralException : public LDAPException{
21
22     public :
23         /**
24          * Creates an object that is initialized with a list of URLs
25          */
26         LDAPReferralException(const LDAPUrlList& urls);
27
28         /**
29          * Destructor
30          */
31         ~LDAPReferralException();
32
33         /**
34          * @return The List of URLs of the Referral/Search Reference
35          */
36         const LDAPUrlList& getUrls();
37
38     private :
39         LDAPUrlList m_urlList;
40 };
41
42 #endif //LDAP_REFERRAL_EXCEPTION_H