1. A non-transitory computer-readable medium that stores instructions executable by at least one processor, the computer-readable medium comprising one or more instructions for: processing a current state in a representation having states and transitions; detecting an event during the processing of the current state; determining if the event can be handled in the current state; and handling the event in the current state, if it is determined that the event can be handled in the current state, otherwise, exceptionally handling the event, the exceptionally handling including passing the event to another state in the representation.