Beispiel #1
0
        // Token: 0x0600166B RID: 5739 RVA: 0x00054D24 File Offset: 0x00052F24
        private void ReportException(object sender, GenericEventArg <TaskErrorEventArg> e)
        {
            if (e.Data.ExceptionHandled)
            {
                return;
            }
            TaskLogger.LogError(e.Data.Exception);
            bool flag;

            if (this.context != null && this.context.ErrorInfo.Exception != null && !this.context.ErrorInfo.IsKnownError && TaskHelper.ShouldReportException(e.Data.Exception, out flag))
            {
                if (!flag)
                {
                    this.context.CommandShell.WriteWarning(Strings.UnhandledErrorMessage(e.Data.Exception.Message));
                }
                TaskLogger.SendWatsonReport(e.Data.Exception, this.context.InvocationInfo.CommandName, this.context.InvocationInfo.UserSpecifiedParameters);
            }
        }
Beispiel #2
0
 public static void SendWatsonReport(Exception e)
 {
     TaskLogger.SendWatsonReport(e, null, null);
 }