protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e) { if (Debugger.IsAttached) { Debugger.Break(); } }
// Code to execute on Unhandled Exceptions private void Application_UnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e) { if (System.Diagnostics.Debugger.IsAttached) { // An unhandled exception has occurred; break into the debugger System.Diagnostics.Debugger.Break(); } }
protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e) { base.OnUnhandledException(sender, e); if (!Debugger.IsAttached) { Debugger.Launch(); } }
protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e) { MessageBoxViewModel message = new MessageBoxViewModel(); message.DisplayName = AppStrings.ApplicationErrorWindowTitle; message.Header = ErrorStrings.GenericErrorMessageHeader; message.Message = ErrorStrings.GenericErrorMessage; message.Buttons = MessageBoxButtons.OK; message.MessageLevel = MessageLevel.Error; IoC.Get <IWindowManager>().ShowDialog(message); e.Handled = true; }
protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e) { try { var analytics = (IAnalyticsService)this.container.GetInstance(typeof(IAnalyticsService), null); analytics.AppCrash(e.ExceptionObject); } catch (Exception) { // Ignore errors when logging } base.OnUnhandledException(sender, e); }
protected override void OnApplicationUnhandledException(System.Windows.ApplicationUnhandledExceptionEventArgs e) { ProcessError("OnApplicationUnhandledException", e.ExceptionObject); }
protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e) { System.Windows.MessageBox.Show("unhandled exception: " + e.ExceptionObject.Message); e.Handled = true; base.OnUnhandledException(sender, e); }
protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e) { base.OnUnhandledException(sender, e); Console.WriteLine(e); }
protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e) { //base.OnUnhandledException(sender, e); e.Handled = true; }
protected override void OnUnhandledException(object sender, System.Windows.ApplicationUnhandledExceptionEventArgs e) { }