class FSM::DuplicateStateError

Overview

Raised when a build registers two states sharing an id. No two states share an id, so the second registration raises rather than silently overwriting the first definition, which would discard its transitions and surface much later as an event with no transition. The message names the duplicated id.

Defined in:

fsm/errors.cr