Smuxi.Frontend.Stfl.Frontend.ShowException C# (CSharp) Method

ShowException() public static method

public static ShowException ( Exception ex ) : void
ex System.Exception
return void
        public static void ShowException(Exception ex)
        {
            //Application.Error("Error occurred!", ex.ToString());
        }

Usage Example

示例#1
0
        public virtual void Close()
        {
            Trace.Call();

            var protocolManager = ProtocolManager;

            if (protocolManager == null)
            {
#if LOG4NET
                _Logger.WarnFormat(
                    "{0}.Close(): ProtocolManager is null, bailing out!", this
                    );
#endif
                return;
            }

            ThreadPool.QueueUserWorkItem(delegate {
                try {
                    protocolManager.CloseChat(
                        Frontend.FrontendManager,
                        ChatModel
                        );
                } catch (Exception ex) {
                    Frontend.ShowException(ex);
                }
            });
        }