/// <summary>
        /// Show the ExceptionReport dialog
        /// </summary>
        /// <remarks>The <see cref="ExceptionReporter"/> will analyze the <see cref="Exception"/>s and 
        /// create and show the report dialog.</remarks>
        /// <param name="exceptions">The <see cref="Exception"/>s to show.</param>
        // ReSharper disable MemberCanBePrivate.Global
        public void Show(params Exception[] exceptions)
        {
            if (exceptions == null) return;		//TODO perhaps show a dialog that says "No exception to show" ?

            try
            {
                _reportInfo.SetExceptions(exceptions);
                _view = ViewFactory.Create<IExceptionReportView>(_viewResolver, _reportInfo);
                _view.ShowExceptionReport();
            }
            catch (Exception internalException)
            {
                _internalExceptionView.ShowException("Unable to show Exception Report", internalException);
            }
        }
 /// <summary>
 /// Show the ExceptionReport dialog
 /// </summary>
 /// <remarks>The <see cref="ExceptionReporter"/> will analyze the <see cref="Exception"/>s and
 /// create and show the report dialog.</remarks>
 /// <param name="exceptions">The <see cref="Exception"/>s to show.</param>
 public void Show(params Exception[] exceptions)
 {
     if (exceptions == null)
     {
         return;                     //TODO perhaps show a dialog that says "No exception to show" ?
     }
     try
     {
         _reportInfo.SetExceptions(exceptions);
         _view = new ExceptionReportView(_reportInfo);
         _view.ShowExceptionReport();
     }
     catch (Exception internalException)
     {
         MessageBox.Show(internalException.Message, "Error Reporting Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Show the ExceptionReport dialog
 /// </summary>
 /// <remarks>The <see cref="ExceptionReporter"/> will analyze the <see cref="Exception"/>s and
 /// create and show the report dialog.</remarks>
 /// <param name="exceptions">The <see cref="Exception"/>s to show.</param>
 // ReSharper disable MemberCanBePrivate.Global
 public void Show(params Exception[] exceptions)
 {
     if (exceptions == null)
     {
         return;                     //TODO perhaps show a dialog that says "No exception to show" ?
     }
     try
     {
         _reportInfo.SetExceptions(exceptions);
         _view = ViewFactory.Create <IExceptionReportView>(_viewResolver, _reportInfo);
         _view.ShowExceptionReport();
     }
     catch (Exception internalException)
     {
         _internalExceptionView.ShowException("Unable to show Exception Report", internalException);
     }
 }
 /// <summary>
 /// Show the ExceptionReport dialog
 /// </summary>
 /// <remarks>The <see cref="ExceptionReporter"/> will analyze the <see cref="Exception"/>s and
 /// create and show the report dialog.</remarks>
 /// <param name="exceptions">The <see cref="Exception"/>s to show.</param>
 public void Show(params Exception[] exceptions)
 {
     if (exceptions == null)
     {
         return;                                         // silently ignore this mistake of passing null - user won't care
     }
     try
     {
         _reportInfo.SetExceptions(exceptions);
         _view = new ExceptionReportView(_reportInfo);
         _view.ShowExceptionReport();
     }
     catch (Exception internalException)
     {
         MessageBox.Show(internalException.Message, "Failed while trying to report an Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }