BB.Error.State.Inference.ModelNotRunning exception (bb_inference v0.1.0)

Copy Markdown View Source

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.

Summary

Types

t()

@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()
}

Functions

exception(args)

@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