summaryrefslogtreecommitdiff
path: root/extensions/source/config/ldap/ldapaccess.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-19 17:57:50 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-19 18:03:21 +0100
commit8ee3f986981ecb74bafb9d4702085bb993418efd (patch)
treeef1e45940c38c5af30644cf8f97b59df6b20f4e9 /extensions/source/config/ldap/ldapaccess.hxx
parent4770f5488870cae68d9a3df2c62613c32a040f44 (diff)
New loplugin:dynexcspec: Add @throws documentation, extensions
Change-Id: Ia44f7b0a162d269bf38133575f986efd62eb6d52
Diffstat (limited to 'extensions/source/config/ldap/ldapaccess.hxx')
-rw-r--r--extensions/source/config/ldap/ldapaccess.hxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/extensions/source/config/ldap/ldapaccess.hxx b/extensions/source/config/ldap/ldapaccess.hxx
index ca206acce9ba..7aa848910c90 100644
--- a/extensions/source/config/ldap/ldapaccess.hxx
+++ b/extensions/source/config/ldap/ldapaccess.hxx
@@ -82,7 +82,10 @@ public:
LdapConnection() : mConnection(nullptr),mLdapDefinition() {}
/** Destructor, releases the connection */
~LdapConnection() ;
- /** Make connection to LDAP server */
+ /** Make connection to LDAP server
+ @throws ldap::LdapConnectionException
+ @throws ldap::LdapGenericException
+ */
void connectSimple(const LdapDefinition& aDefinition)
throw (ldap::LdapConnectionException,
ldap::LdapGenericException);
@@ -103,6 +106,9 @@ public:
/** finds DN of user
@return DN of User
+ @throws lang::IllegalArgumentException
+ @throws ldap::LdapConnectionException
+ @throws ldap::LdapGenericException
*/
OUString findUserDn(const OUString& aUser)
throw (lang::IllegalArgumentException,
@@ -110,7 +116,7 @@ public:
ldap::LdapGenericException);
private:
-
+ /// @throws ldap::LdapConnectionException
void initConnection()
throw (ldap::LdapConnectionException);
void disconnect();
@@ -120,6 +126,8 @@ private:
*/
bool isValid() const { return mConnection != nullptr ; }
+ /// @throws ldap::LdapConnectionException
+ /// @throws ldap::LdapGenericException
void connectSimple()
throw (ldap::LdapConnectionException,
ldap::LdapGenericException);