# `AshStateMachine.Errors.InvalidInitialState`
[🔗](https://github.com/ash-project/ash_state_machine/blob/v0.3.1/lib/errors/invalid_initial_state.ex#L5)

Used when an initial state is set that is not a valid initial state

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %AshStateMachine.Errors.InvalidInitialState{
  __exception__: true,
  action: term(),
  bread_crumbs: term(),
  class: term(),
  field: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  target: term(),
  vars: term()
}
```

Create an `Elixir.AshStateMachine.Errors.InvalidInitialState` without raising it.

## Keys

- :action
- :target
- :field

---

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