# `BB.Error.Protocol`
[🔗](https://github.com/beam-bots/bb/blob/main/lib/bb/error/protocol.ex#L5)

Low-level protocol error classes.

This namespace is for errors that wrap specific protocol errors from
device communication layers. Protocol-specific errors should be defined
in their respective packages:

- Robotis/Dynamixel errors → `bb_servo_robotis`
- I2C errors → `bb_servo_pca9685` or similar

These packages can define errors under this namespace, e.g.:

    defmodule BB.Error.Protocol.Robotis.HardwareAlert do
      use BB.Error, class: :protocol, fields: [:servo_id, :alerts]
      # ...
    end

---

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