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

Safety system error classes.

These errors represent safety-critical violations that require immediate
response. All safety errors have `:critical` severity and trigger
automatic disarm when handled by the safety system.

Safety errors should be raised when:
- Physical limits are exceeded (position, velocity, torque)
- Collision risk is detected
- Emergency stop is triggered
- Disarm callbacks fail (hardware may be in unsafe state)

---

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