> ## Documentation Index
> Fetch the complete documentation index at: https://ctrlrun.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# PolicyError

> The policy is missing, unreadable, or malformed. Raised at load time (SPEC-v0.1 §3.4).

`ctrlrun.PolicyError` — class, defined at `src/ctrlrun/errors.py:17`

```python theme={null}
from ctrlrun import PolicyError
```

```python theme={null}
class PolicyError(CTRLRunError)
```

The policy is missing, unreadable, or malformed. Raised at load time (SPEC-v0.1 §3.4).

## Next

* [Python API index](/docs/reference/api/index).
* [Get started](/docs/get-started/quickstart) · [Why](/docs/why).


## Related topics

- [Errors](/docs/reference/errors.md)
- [Protect a function](/docs/guides/protect-a-function.md)
- [Policy YAML reference](/docs/reference/policy-yaml.md)
- [Roll out observe, then enforce](/docs/guides/observe-to-enforce.md)
- [Protect your first action](/docs/get-started/quickstart.md)
