Beispiel #1
0
        /// <summary>
        /// Receives notification that an error has occurred
        /// </summary>
        /// <param name="e">The trapped exception</param>
        protected virtual void OnError(Exception e)
        {
            if (Tracing.TraceErrors())
            {
                switch (e)
                {
                case AppException ae:
                    Trace(ae.Message);
                    break;

                default:
                    Trace(FsmMessages.Error(Id, e));
                    break;
                }
            }
        }