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

Copy Markdown View Source

A frame arrived while the camera wasn't capturing.

Capture is only considered started once the driver confirms it with BB.Camera.Hub.capture_started/2. A frame before that confirmation, or after capture_stopped/2, means the driver's own lifecycle bookkeeping has drifted from the hub's.

Summary

Types

t()

@type t() :: %BB.Error.State.Camera.NotCapturing{
  __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.NotCapturing{
  __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.NotCapturing without raising it.

Keys

  • :robot
  • :camera