Exemple #1
0
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     logger.Log <Exception>(LogLevel.Error, e.Exception.Message, e.Exception);
     MessageBox.Show("Something broke down in the program. See event log for details.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     e.Handled = true;
 }
Exemple #2
0
 private void App_DispatcherUnhandledException1(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     logger2.Log(e.Exception);
 }
Exemple #3
0
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
 }
Exemple #4
0
        private void PrismApplication_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            MessageBox.Show("Unexpected error occurred. Please contact MDSAS Support" + Environment.NewLine + e.Exception.Message, "This is not the error you are looking for");

            e.Handled = true;
        }
Exemple #5
0
 void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     ApplicationContext.Current.Logger.Error("Unhandled exception happened.", e.Exception);
     MessageBox.Show("Error happened, please restart the program. ");
     Environment.Exit(-1);
 }
Exemple #6
0
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     Common.LogException(e.Exception);
     Common.Message(null, "Unhandled exception.", e.Exception, MessageWindow.Flags.Error);
 }
Exemple #7
0
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show("Unexpected error occurred. Please inform the admin."
                     + Environment.NewLine + e.Exception.Message, "Unexpected error");
     e.Handled = true; // Wij behandelen de error met een custom error dus true
 }
Exemple #8
0
 void OnDispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.Exception.Message + Environment.NewLine + e.Exception.StackTrace, "Fel", MessageBoxButton.OK, MessageBoxImage.Error);
     e.Handled = true;
 }
Exemple #9
0
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     //WPFForms.ShowError("Error crítico", e.Exception.Message);
     Console.WriteLine("ZOT ha capturado una excepcion no controlada en " + e.Exception.StackTrace);
     e.Handled = true;
 }
Exemple #10
0
 /// <summary>
 /// 异常处理
 /// </summary>
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     LogUtil.Error(e.Exception, "Application_DispatcherUnhandledException");
 }
Exemple #11
0
 private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show("未处理异常!\r\n" + e.Exception.Message);
 }
 private static void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     TrackException(e.Exception);
 }
Exemple #13
0
 void OnDispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     _log.Error("An unhandled exception occurred.", e.Exception);
     MessageBox.Show("An unhandled exception occurred", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     e.Handled = true;
 }
Exemple #14
0
        void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            Application.Current.Dispatcher.Invoke(() => MessageWindow.ShowSumit(e.Exception.Message, "系统异常", 5));

            e.Handled = true;
        }
Exemple #15
0
 /// <summary>
 /// Logs unhandled exceptions.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     Logger.LogError(e.Exception, "Application failure");
 }
        /// <summary> 补货全局异常 </summary>
        static void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            System.Windows.MessageBox.Show(e.Exception.Message);

            e.Handled = true;
        }
Exemple #17
0
 private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.Exception.ToString(), "Fehler");
 }
Exemple #18
0
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show($"Ocurrio una excepción :( {e.Exception.Message}", "");
     e.Handled = true;
 }
Exemple #19
0
        private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            Exception exception = e.Exception;

            ApplicationHelper.HandleExceptions(exception);
        }
Exemple #20
0
 private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     e.Handled = true;
     LogException(e.Exception);
     ShdutDownSafe();
 }
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.Exception.Message);
     e.Handled = true;
 }
Exemple #22
0
 /// <summary>
 /// Handle unhandled expceptions
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Dispatcher_UnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     e.Handled = true;
     CurrentDomainUnhandledException(sender, new UnhandledExceptionEventArgs(e.Exception, false));
 }
Exemple #23
0
 private void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.ToString(), "Unhandled Error", MessageBoxButton.OK, MessageBoxImage.Error);
 }
Exemple #24
0
 private void Application_DispatcherUnhandledException(object sender,
                                                       System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show("Проверьте пожалуйста вводные вами данные и попробуйте  еще раз", "Что то пошло не так!!!");
     e.Handled = true;
 }
Exemple #25
0
 private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     Console.WriteLine(e.Exception.ToString());
     MessageBox.Show(e.Exception.Message);
 }
Exemple #26
0
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.Exception.ToString(), "MediaPlayer Error Message");
     e.Handled = true;
 }
Exemple #27
0
 private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     logger.Log("App_Deactivated");
 }
 /*
  * 未捕获的线程异常
  */
 void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show("Error:" + Environment.NewLine + e.Exception.Message);
     //Shutdown(1);
     e.Handled = true;
 }
Exemple #29
0
 void OnDispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     Logger.Error(e.Exception);
     e.Handled = true;
 }
 private void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     //MessageBox.Show("未知异常", e.Exception.AllMessage(), MessageBoxButton.OK, MessageBoxImage.Error);
     //LogHelper.Error(e.Exception.Message, e.Exception);
     //e.Handled = true;
 }