using System; namespace Wayne.Lib.StateEngine { /// /// Exception transition is used when State engine issues a transition automatically because Enter() or HandleEvent() /// throws an exception. /// public class ExceptionTransition : Transition { /// /// Exception that cause the transition /// public Exception Exception { get; set; } /// /// Constructor /// /// /// /// public ExceptionTransition(State sender, object type, Exception exception) : base(sender, type) { Exception = exception; } } }