nradulovic / pyeds

Python Event Driven System
GNU Lesser General Public License v3.0
11 stars 4 forks source link

Unhandled events inside a child state are not handled correctly? #44

Closed pivodog closed 2 years ago

pivodog commented 2 years ago

Currently, I've noticed that an event that is received by a substate (ie child state) that is not handled gets flagged as an unhandled event and nothing more is done I believe that the proper behavior of unhandled events should be passed to the next higher state (ie parent state) and continued up to the top state and unhandled there if necessary. Is this behavior by design or a bug?

pivodog commented 2 years ago

I figured out that if you handle the unhandled exception it will bubble up to the parent state?