# `HeadMoved`

A class in `fastatp.exceptions` ([source](https://github.com/jacoblapenna/fastatp/blob/main/fastatp/exceptions.py#L87)).

```python
HeadMoved(head: object, message: str | None = None)
```

Based on [`RepoError`](https://fastatp.com/api/repoerror.md).

The repo's head in its `fastatp.repo.head.HeadStore` is no
longer the one this commit or import was built on: another process got
there first. Nothing became visible. `head` is the current head, and
the repo has already reloaded to it, so the caller re-reads and retries
on the same object; [`Repo.apply_writes`](https://fastatp.com/api/repo.md#apply_writes) retries a few times by itself
before letting this out. `head` is `None` when the store no longer
holds a head for this DID at all (it was deleted): then there is nothing
to reload, the repo object is stale, and the caller reopens or recreates
the repo instead of retrying.

## Attributes

- `head`
