BB.Error.Invalid.Camera.UnknownStreamInfo exception (bb_camera v0.1.1)

Copy Markdown View Source

A driver can't say what it will produce from its declared options alone.

BB.Camera.stream_info/1 runs during discovery against robots that aren't running, so it can't ask the hardware. A driver whose format genuinely only becomes knowable once the device is open returns this, and discovery reports stream_info: nil rather than guessing.

Summary

Types

t()

@type t() :: %BB.Error.Invalid.Camera.UnknownStreamInfo{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  module: module(),
  path: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(args)

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

Create an Elixir.BB.Error.Invalid.Camera.UnknownStreamInfo without raising it.

Keys

  • :module
  • :reason