# DirectoryUnavailableException

> Signals an operational directory failure without exposing backend diagnostics or the submitted credentials.

[API reference](/docs/api/index.md) › [LDAP](/docs/extensions/ldap/reference/index.md) › DirectoryUnavailableException

| final class | `yii2\extensions\ldap\DirectoryUnavailableException` |
| --- | --- |
| Extends | [`RuntimeException`](https://www.php.net/manual/en/class.runtimeexception.php) |
| Source | [`src/DirectoryUnavailableException.php`](https://github.com/yii2-extensions/ldap/blob/main/src/DirectoryUnavailableException.php#L13) |

Signals an operational directory failure without exposing backend diagnostics or the submitted credentials.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`__construct()`](#method-__construct) | Creates an exception with a generic message safe to expose to application callers. | `DirectoryUnavailableException` |

## Method details

### __construct() <span id="method-__construct"></span>

```php
public function __construct()
```

Creates an exception with a generic message safe to expose to application callers.