Exemplo n.º 1
0
 public override void ReportException(Exception e, ExceptionReportFlags flags)
 {
     if (ProductReleaseVersion != null && flags == 0)
     {
         ReportBackgroundException(e);
     }
     else
     {
         _excHandler.ReportException(e, flags);
     }
 }
Exemplo n.º 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();
            }
        }
Exemplo n.º 3
0
 public override void ReportException(Exception e, ExceptionReportFlags flags)
 {
     throw new Exception(e.Message, e);
 }
Exemplo n.º 4
0
Arquivo: ICore.cs Projeto: 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);
Exemplo n.º 5
0
Arquivo: ICore.cs Projeto: 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);
 }
Exemplo n.º 6
0
 public QueuedException(Exception exception, ExceptionReportFlags flags)
 {
     _exception = exception;
     _flags     = flags;
 }
Exemplo n.º 7
0
 public override void ReportException(Exception e, ExceptionReportFlags flags)
 {
     _reportedException = e;
 }