notify State Changed
Notifies all registered observers of a state change.
Observers are notified in the order they were registered. If an observer throws an exception, it is caught and logged, but does not affect other observers or the notification process.
Parameters
old State
The previous state
new State
The new state