# `BB.Safety.HardwareError`
[🔗](https://github.com/beam-bots/bb/blob/main/lib/bb/safety/hardware_error.ex#L5)

Payload type for hardware error events.

Published to `[:safety, :error]` when a component reports a hardware error.
Subscribe to receive notifications of hardware failures.

## Example

    BB.subscribe(MyRobot, [:safety, :error])

    # Receive:
    # {:bb, [:safety, :error], %BB.Message{payload: %BB.Safety.HardwareError{...}}}

# `t`

```elixir
@type t() :: %BB.Safety.HardwareError{error: term(), path: [atom()]}
```

# `new`

```elixir
@spec new(
  atom(),
  keyword()
) :: {:ok, BB.Message.t()} | {:error, term()}
```

---

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