示例#1
0
        private void Application_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
        {
            if (e.Exception is TaskCanceledException)
            {
                return;
            }

            ShutdownIfMahAppSettingFileError(e);

            ApplicationError.HandleUnexpectedError(e.Exception);
        }
示例#2
0
        private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            var showMessageBox = !e.IsTerminating;

            ApplicationError.HandleUnexpectedError(e.ExceptionObject as Exception, showMessageBox);
        }
示例#3
0
 private void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e)
 {
     ApplicationError.HandleUnexpectedError(e.Exception);
 }