Update FSM
Some improvements of the FSM transition table:
-
Add reset
action -
Add arm
andsoft_trigger
event -
Add unhandled expection event exceptions<>
make_transition_table(
*"idle"_s + event<event> / [] { throw std::runtime_error{"error"}; }
,*"error_handler"_s + exception<std::runtime_error> = X
, "error_handler"_s + exception<std::logic_error> = X
, "error_handler"_s + exception<> / [] { cleanup...; } = X // any exception
);
Edited by Samuel Debionne