Ldap/Exception.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Ldap
- Version
- $Id: Exception.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Ldap_Exception
Package: Zend\Ldap
Parameters
Returns
- Parent(s)
- \Zend_Exception < \Exception
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
- \global\Zend_Exception
Constants
Properties

null|\Exception $_previous = null
inheritedInherited from:
\Zend_Exception::$$_previous
Default value
nullDetails- Type
- null | \Exception
- Inherited_from
- \Zend_Exception::$$_previous
Methods

__call(string $method, array $args) : mixed
For PHP < 5.3.0, provides access to the getPrevious() method.
| Name | Type | Description |
|---|---|---|
| $method | string | |
| $args | array |
| Type | Description |
|---|---|
| mixed |

__construct(\Zend_Ldap $ldap = null, string $str = null, int $code = 0) : voidConstruct the exception
Parameters
| Name | Type | Description |
|---|---|---|
| $ldap | \Zend_Ldap | A Zend_Ldap object |
| $str | string | An informtive exception message |
| $code | int | An LDAP error code |

getErrorCode() : int
Returns
Details
| Type | Description |
|---|---|
| int | The current error code for this exception |
- Deprecated
- will be removed

getLdapCode(\Zend_Ldap $ldap = null) : int
static
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $ldap | \Zend_Ldap | A Zend_Ldap object |
| Type | Description |
|---|---|
| int | The current error code for the resource |
- Deprecated
- not necessary any more - will be removed