Exception: Fosm::TerminalState
- Defined in:
- lib/fosm/errors.rb
Overview
Raised when trying to transition a record in a terminal state
Instance Method Summary collapse
-
#initialize(state_name, record_class) ⇒ TerminalState
constructor
A new instance of TerminalState.
Constructor Details
#initialize(state_name, record_class) ⇒ TerminalState
Returns a new instance of TerminalState.
35 36 37 |
# File 'lib/fosm/errors.rb', line 35 def initialize(state_name, record_class) super("#{record_class.name} is in terminal state '#{state_name}' and cannot transition further") end |