BB.Error.State.Camera.NotRunning exception (bb_camera v0.1.1)

Copy Markdown View Source

The camera is declared but its BB.Camera.Hub isn't alive.

The robot may not be started, the sensor may have crashed, or the hardware may be absent. Discovery still lists the camera - with status: :declared - because an operator needs to see a camera that should be there and isn't.

Summary

Types

t()

@type t() :: %BB.Error.State.Camera.NotRunning{
  __exception__: term(),
  bread_crumbs: term(),
  camera: atom(),
  class: term(),
  path: term(),
  robot: module(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %BB.Error.State.Camera.NotRunning{
  __exception__: term(),
  bread_crumbs: term(),
  camera: term(),
  class: term(),
  path: term(),
  robot: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.BB.Error.State.Camera.NotRunning without raising it.

Keys

  • :robot
  • :camera