BB.Error.Hardware.Camera.CaptureFailed exception (bb_camera v0.1.1)

Copy Markdown View Source

The driver couldn't start, or couldn't continue, capturing.

Reported by the driver through BB.Camera.Hub.capture_failed/2. The hub publishes BB.Message.Camera.EndCapture and hands this error to every subscriber, so no consumer is left waiting on a stream that will never resume.

Summary

Types

t()

@type t() :: %BB.Error.Hardware.Camera.CaptureFailed{
  __exception__: term(),
  bread_crumbs: term(),
  camera: atom(),
  class: term(),
  path: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(args)

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

Create an Elixir.BB.Error.Hardware.Camera.CaptureFailed without raising it.

Keys

  • :camera
  • :reason