Beispiel #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;
 }
Beispiel #2
0
 private void App_DispatcherUnhandledException1(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     logger2.Log(e.Exception);
 }
Beispiel #3
0
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
 }
Beispiel #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;
        }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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
 }
Beispiel #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;
 }
Beispiel #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;
 }
Beispiel #10
0
 /// <summary>
 /// 异常处理
 /// </summary>
 private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     LogUtil.Error(e.Exception, "Application_DispatcherUnhandledException");
 }
Beispiel #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);
 }
Beispiel #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;
 }
Beispiel #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;
        }
Beispiel #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");
 }
Beispiel #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;
        }
Beispiel #17
0
 private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.Exception.ToString(), "Fehler");
 }
Beispiel #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;
 }
Beispiel #19
0
        private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
        {
            Exception exception = e.Exception;

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