# `BB.Error.State.Camera.NotCapturing`
[🔗](https://github.com/beam-bots/bb_camera/blob/main/lib/bb/error/state/camera/not_capturing.ex#L5)

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.

# `t`

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

# `exception`

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

---

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