Opc.Ua.ExceptionDlg.Show C# (CSharp) Method

Show() public static method

Displays the exception in a dialog.
public static Show ( string caption, Exception e ) : void
caption string
e Exception
return void
        public static void Show(string caption, Exception e)
        {
            // check if running as a service.
            if (!Environment.UserInteractive)
            {
                Utils.Trace(e, "Unexpected error in '{0}'.", caption);
                return;
            }

            new ExceptionDlg().ShowDialog(caption, e);
        }

Same methods

ExceptionDlg::Show ( bool showStackTrace ) : void