# ManagedPolicyError

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/configuration/service/ManagedPolicyError)

Raised when managed policy declares a value that cannot be enforced.

The file parses, so provider health is `OK`; the policy it states is what
cannot be applied. A subclass of `ManagedConfigError` so every caller that
already fails closed on an unreadable file fails closed here too.

## Signature

```python
ManagedPolicyError(
    self,
    status: ProviderStatus,
    keys: tuple[str, ...],
)
```

## Extends

- `ManagedConfigError`

## Constructors

```python
__init__(
    self,
    status: ProviderStatus,
    keys: tuple[str, ...],
) -> None
```

| Name | Type |
|------|------|
| `status` | `ProviderStatus` |
| `keys` | `tuple[str, ...]` |


## Properties

- `keys`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/configuration/service.py#L560)