RadioDld.FindNew.FindNewPluginInst_FindNewException C# (CSharp) Method

FindNewPluginInst_FindNewException() private static method

private static FindNewPluginInst_FindNewException ( Exception exception, bool unhandled ) : void
exception System.Exception
unhandled bool
return void
        private static void FindNewPluginInst_FindNewException(Exception exception, bool unhandled)
        {
            if (unhandled)
            {
                ErrorReporting report = new ErrorReporting(exception);

                using (ReportError showError = new ReportError())
                {
                    showError.ShowReport(report);
                }
            }
            else
            {
                ErrorReporting reportException = new ErrorReporting("Find New Error", exception);
                reportException.SendReport();
            }
        }