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

Copy Markdown View Source

A driver delivered a frame whose sequence didn't advance.

Consumers are promised a frame strictly newer than the last one they were given, and that promise is built on the sequence number. A driver that repeats or rewinds one would make a consumer's next request block forever, so the frame is refused and the driver told, rather than accepted and quietly mis-ordered.

Summary

Types

t()

@type t() :: %BB.Error.Invalid.Camera.StaleFrame{
  __exception__: term(),
  bread_crumbs: term(),
  camera: atom(),
  class: term(),
  last_sequence: non_neg_integer() | nil,
  path: term(),
  sequence: non_neg_integer() | nil,
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %BB.Error.Invalid.Camera.StaleFrame{
  __exception__: term(),
  bread_crumbs: term(),
  camera: term(),
  class: term(),
  last_sequence: term(),
  path: term(),
  sequence: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

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

Keys

  • :camera
  • :sequence
  • :last_sequence