private void Application_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) { if (e.Exception is TaskCanceledException) { return; } ShutdownIfMahAppSettingFileError(e); ApplicationError.HandleUnexpectedError(e.Exception); }
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { var showMessageBox = !e.IsTerminating; ApplicationError.HandleUnexpectedError(e.ExceptionObject as Exception, showMessageBox); }
private void TaskScheduler_UnobservedTaskException(object sender, UnobservedTaskExceptionEventArgs e) { ApplicationError.HandleUnexpectedError(e.Exception); }