# `Crank.StoppedError`
[🔗](https://github.com/code-of-kai/crank/blob/v0.2.0/lib/crank/stopped_error.ex#L1)

Raised when `Crank.crank/2` or `Crank.crank!/2` receives a machine
that has already stopped.

A machine stops when a `handle/3` clause returns `{:stop, reason, data}`.
After that, no more events can be processed. Attempting to crank a
stopped machine raises this error with the module, current state,
attempted event, and stop reason.

---

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