예제 #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);
 }