Example #1
0
 public override void ReportException(Exception e, ExceptionReportFlags flags)
 {
     if (ProductReleaseVersion != null && flags == 0)
     {
         ReportBackgroundException(e);
     }
     else
     {
         _excHandler.ReportException(e, flags);
     }
 }
Example #2
0
        internal void ReportException(Exception ex, ExceptionReportFlags flags)
        {
            Trace.WriteLine(ex.ToString());
            if (IsIgnoredException(ex))
            {
                return;
            }

            lock ( _exceptionQueue )
            {
                _exceptionQueue.Enqueue(new QueuedException(ex, flags));
            }

            if (_ownerControl != null && _ownerControl.IsHandleCreated && !_ownerControl.IsDisposed &&
                _ownerControl.InvokeRequired)
            {
                Core.UIManager.QueueUIJob(new MethodInvoker(ShowExceptionDialog));
            }
            else
            {
                ShowExceptionDialog();
            }
        }
Example #3
0
 public override void ReportException(Exception e, ExceptionReportFlags flags)
 {
     throw new Exception(e.Message, e);
 }
Example #4
0
File: ICore.cs Project: mo5h/omeo
 /// <summary>
 /// Reports an exception to the UI and provides an opportunity to submit this exception to the ITN tracker.
 /// </summary>
 /// <param name="e">The exception being reported.</param>
 /// <param name="flags">Provides a combination of flags that specify whether the exception is fatal or if the log file is to be attached when the exception is submitted. See <see cref="ExceptionReportFlags"/> for possible values.</param>
 public abstract void ReportException(Exception e, ExceptionReportFlags flags);
Example #5
0
File: ICore.cs Project: mo5h/omeo
 /// <summary>
 /// Reports an exception to the UI and provides an opportunity to submit this exception to the tracker.
 /// </summary>
 /// <param name="e">The exception being reported.</param>
 /// <param name="flags">Provides a combination of flags that specify whether the exception is fatal or if the log file is to be attached when the exception is submitted. See <see cref="ExceptionReportFlags"/> for possible values.</param>
 public static void ReportException(Exception e, ExceptionReportFlags flags)
 {
     ICore.Instance.ReportException(e, flags);
 }
Example #6
0
 public QueuedException(Exception exception, ExceptionReportFlags flags)
 {
     _exception = exception;
     _flags     = flags;
 }
Example #7
0
 public override void ReportException(Exception e, ExceptionReportFlags flags)
 {
     _reportedException = e;
 }