# `BB.Error.Hardware.Camera.CaptureFailed`
[🔗](https://github.com/beam-bots/bb_camera/blob/main/lib/bb/error/hardware/camera/capture_failed.ex#L5)

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.

# `t`

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

# `exception`

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

---

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