Skip to content

Commit 0d27af9

Browse files
committed
[Ldap] Document the new exceptions thrown by the code
1 parent 64eaf7e commit 0d27af9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Component/Ldap/Adapter/ConnectionInterface.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
namespace Symfony\Component\Ldap\Adapter;
1313

14+
use Symfony\Component\Ldap\Exception\AlreadyExistsException;
15+
use Symfony\Component\Ldap\Exception\ConnectionTimeoutException;
16+
use Symfony\Component\Ldap\Exception\InvalidCredentialsException;
17+
1418
/**
1519
* @author Charles Sarrazin <charles@sarraz.in>
1620
*/
@@ -28,6 +32,10 @@ public function isBound();
2832
*
2933
* @param string $dn The user's DN
3034
* @param string $password The associated password
35+
*
36+
* @throws AlreadyExistsException When the connection can't be created because of an LDAP_ALREADY_EXISTS error
37+
* @throws ConnectionTimeoutException When the connection can't be created because of an LDAP_TIMEOUT error
38+
* @throws InvalidCredentialsException When the connection can't be created because of an LDAP_INVALID_CREDENTIALS error
3139
*/
3240
public function bind($dn = null, $password = null);
3341
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy