> ## 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](/reference/api/index).
* [Get started](/get-started/quickstart) · [Why](/why).


## Related topics

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