Esempio n. 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;
 }
Esempio n. 2
0
 private void App_DispatcherUnhandledException1(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     logger2.Log(e.Exception);
 }
Esempio n. 3
0
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
 }
Esempio n. 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;
        }
Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 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
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 10
0
 /// <summary>
 /// 异常处理
 /// </summary>
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     LogUtil.Error(e.Exception, "Application_DispatcherUnhandledException");
 }
Esempio n. 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);
 }
Esempio n. 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;
 }
Esempio n. 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;
        }
Esempio n. 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");
 }
Esempio n. 16
0
        /// <summary> 补货全局异常 </summary>
        static void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            System.Windows.MessageBox.Show(e.Exception.Message);

            e.Handled = true;
        }
Esempio n. 17
0
 private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.Exception.ToString(), "Fehler");
 }
Esempio n. 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;
 }
Esempio n. 19
0
        private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            Exception exception = e.Exception;

            ApplicationHelper.HandleExceptions(exception);
        }
Esempio n. 20
0
 private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     e.Handled = true;
     LogException(e.Exception);
     ShdutDownSafe();
 }
Esempio n. 21
0
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.Exception.Message);
     e.Handled = true;
 }
Esempio n. 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));
 }
Esempio n. 23
0
 private void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.ToString(), "Unhandled Error", MessageBoxButton.OK, MessageBoxImage.Error);
 }
Esempio n. 24
0
 private void Application_DispatcherUnhandledException(object sender,
                                                       System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show("Проверьте пожалуйста вводные вами данные и попробуйте  еще раз", "Что то пошло не так!!!");
     e.Handled = true;
 }
Esempio n. 25
0
 private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     Console.WriteLine(e.Exception.ToString());
     MessageBox.Show(e.Exception.Message);
 }
Esempio n. 26
0
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.Exception.ToString(), "MediaPlayer Error Message");
     e.Handled = true;
 }
Esempio n. 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;
 }
Esempio n. 29
0
 void OnDispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     Logger.Error(e.Exception);
     e.Handled = true;
 }
Esempio n. 30
0
 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;
 }