# `Trogon.Commanded.ConsistencyPolicy.VersionMismatchError`
[🔗](https://github.com/straw-hat-team/beam-monorepo/blob/trogon_commanded@v1.0.1/apps/trogon_commanded/lib/trogon/commanded/consistency_policy/version_mismatch_error.ex#L1)

Requested version does not match the current version.

# `current_version`

```elixir
@type current_version() :: non_neg_integer()
```

Version the projection is at (has moved past requested).

# `policy`

```elixir
@type policy() :: Trogon.Commanded.ConsistencyPolicy.ExactVersionPolicy.t()
```

Policy that required exact version.

# `t`

```elixir
@type t() :: %Trogon.Commanded.ConsistencyPolicy.VersionMismatchError{
  __exception__: term(),
  current_version: current_version(),
  policy: policy()
}
```

Raised when the projection version does not match the policy requirement.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
