Example #1
0
 private void APP_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.Exception.Message);
     e.Handled = true;
 }
Example #2
0
 /// <summary>
 /// Handle unhandled expceptions
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Dispatcher_UnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     e.Handled = true;
     CurrentDomainUnhandledException(sender, new UnhandledExceptionEventArgs(e.Exception, false));
 }
Example #3
0
 private void Application_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     MessageService.MetroMessageDialogError(e.Exception.Message);
     e.Handled = true;
 }
Example #4
0
 // Catch exceptions which occur outside try-catch blocks
 private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     Xceed.Wpf.Toolkit.MessageBox.Show(e.Exception.Message + "\n\n" + e.Exception.InnerException.ToString(), "Error");
     e.Handled = true;
     Application.Current.Shutdown();
 }
        protected override void OnUnhandledException(DispatcherUnhandledExceptionEventArgs e)
        {
            base.OnUnhandledException(e);

            MessageBox.Show(e.Exception.ToString(), "Error occured", MessageBoxButton.OK, MessageBoxImage.Error);
        }
 /// <summary>
 /// Called when a DispatcherUnhandledException is raised by Visual Studio.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="DispatcherUnhandledExceptionEventArgs" /> instance containing the event data.</param>
 private static void OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     OutputWindowHelper.WriteLine("EditorConfig's diagnostics mode caught the following unhandled exception in Visual Studio--" + Environment.NewLine + e.Exception);
     e.Handled = true;
 }
Example #7
0
 public void Handle(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     e.Handled = true;
     Handle(e.Exception);
 }
Example #8
0
 private void Application_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.Exception.Message);
 }
 protected override void OnUnhandledException(DispatcherUnhandledExceptionEventArgs e)
 {
     // Called on Application.DispatcherUnhandledException
     Container.Get <IWindowManager> ().ShowMessageBox($"An unhandled Exception occurred:\n{e.Exception.ToString ()}");
 }
 void Dispatcher_UnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     Logger.Fatal(e.Exception);
 }
        /// <summary>   Event handler. Called by Dispacher for unhandled exception events. </summary>
        ///
        /// <remarks>   AM Kozhevnikov, 07.02.2018. </remarks>
        ///
        /// <param name="sender">   Source of the event. </param>
        /// <param name="e">        Dispatcher unhandled exception event information. </param>

        internal static void Dispacher_UnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
        {
            DCT.Execute(data => { e.Handled = true; });
        }
Example #12
0
 private static void appDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     ExceptionLogger.LogExceptionToFile(e.Exception);
     e.Handled = true;
 }
Example #13
0
 void AppDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     LogUtil.LogError("App", "AppDispatcherUnhandledException", e.Exception);
     e.Handled = true;
 }
 protected override void OnUnhandledException(Object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(sender.ToString());
     base.OnUnhandledException(sender, e);
 }
Example #15
0
 private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     LogHelper.ErrorLog(e.Exception);
 }
 private void App_OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e.Exception.ToString());
     e.Handled = true;
     this.MainWindow?.Close();
 }
Example #17
0
 private void OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     this.LogCriticalException(e.Exception);
 }
 private void OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show($"Exception: {e.Exception}");
     e.Handled = true;
 }
Example #19
0
 /// <summary>
 /// last resort exception sink, does not assume the application is operable other than logging
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private static void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     ExceptionViewer.DisplayUnhandledException(e);
 }
Example #20
0
 private void ApplicationDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(MainWindow, e.Exception.ToString());
     e.Handled = true;
 }
Example #21
0
 private void AppOnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     _logger.Critical(e.Exception.ToString());
     MessageBox.Show(e.Exception.ToString(), "Critical error!", MessageBoxButton.OK, MessageBoxImage.Error);
     //e.Handled = true;
 }
 private void UnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     Logger.Instance.Log(e.ToString());
     e.Handled = true;
 }
Example #23
0
 private void DispatcherOnUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs dispatcherUnhandledExceptionEventArgs)
 {
     SendReport(dispatcherUnhandledExceptionEventArgs.Exception);
 }
Example #24
0
 void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     e.Handled = true;
 }
Example #25
0
 private static void CorruptDispatcherUnhandledExceptionHandler(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     DispatcherUnhandledExceptionHandler(sender, e);
 }
Example #26
0
 private void App_OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     MessageBox.Show(e?.Exception?.ToString());
     e.Handled = true;
 }
Example #27
0
 private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     LogHelper.WriteLog(typeof(App), e.Exception.ToString());
 }
Example #28
0
 /// <summary>
 /// Override this to add custom behavior for unhandled exceptions.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The event args.</param>
 protected virtual void OnUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
 }
Example #29
0
 // UI ThreadのException
 private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     e.Handled = true;
     HandleException(e.Exception);
 }
Example #30
0
 static void Dispatcher_UnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     Debug.WriteLine(e.Exception.ToString());
     MessageBox.Show(e.Exception.ToString(), "Sorry, we crashed");
     e.Handled = true;
 }
Example #31
0
 private void CurrentOnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
 {
     // From the main UI dispatcher thread in your WPF application.
     HandleException(e.Exception);
     e.Handled = true;
 }