/// <summary> /// Handles the specified exception. /// </summary> /// <param name="exception">The exception.</param> /// <param name="stateContext">The state context.</param> private static void HandleException(Exception exception, IStateContext <TState, TEvent> stateContext) { stateContext.OnExceptionThrown(exception); }