# `BB.Error.Invalid.Camera.StaleFrame`
[🔗](https://github.com/beam-bots/bb_camera/blob/main/lib/bb/error/invalid/camera/stale_frame.ex#L5)

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.

# `t`

```elixir
@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()
}
```

# `exception`

```elixir
@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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
