# `BB.Error.State.Inference.ModelNotRunning`
[🔗](https://github.com/beam-bots/bb_inference/blob/main/lib/bb/error/state/inference/model_not_running.ex#L5)

A component asked for a model that no process is running.

In simulation this is the default: a model is lowered into a controller,
and controllers are omitted in simulation unless declared otherwise. A
model declared with `simulation :start` runs in simulation too. Outside
simulation, the model's process has stopped - usually because it failed to
load and the topology supervisor gave up restarting it.

# `t`

```elixir
@type t() :: %BB.Error.State.Inference.ModelNotRunning{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  model: atom(),
  path: term(),
  robot: module(),
  simulation: atom() | nil,
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %BB.Error.State.Inference.ModelNotRunning{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  model: term(),
  path: term(),
  robot: term(),
  simulation: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.BB.Error.State.Inference.ModelNotRunning` without raising it.

## Keys

- :robot
- :model
- :simulation

---

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