/// <summary> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnUnhandledExceptionFilter(object sender, DispatcherUnhandledExceptionFilterEventArgs e) { e.RequestCatch = true; var ex = e.Exception; Logging.Log(Logger, new LogItem("", ex, LogLevel.Error)); }
/// <summary> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnUnhandledExceptionFilter(object sender, DispatcherUnhandledExceptionFilterEventArgs e) { e.RequestCatch = true; Exception ex = e.Exception; Logging.Log(Logger, new LogItem(ex, true)); }
private void UnhandledExceptionFilter(object sender, DispatcherUnhandledExceptionFilterEventArgs e) { e.RequestCatch = false; MessageBox.Show( $"{e.Exception.GetType()}: {e.Exception.Message}", "Naver-Webtoon-Downloader-GUI", MessageBoxButton.OK, MessageBoxImage.Warning); File.WriteAllText("error.log", e.Exception.ToString()); }
/// <summary> /// The method gets called for any unhandled exception on the /// Dispatcher. When e.RequestCatch is set to true, the exception /// is catched by the Dispatcher and the DispatcherUnhandledException /// event will be invoked. /// </summary> private void OnFilterDispatcherException(object sender, DispatcherUnhandledExceptionFilterEventArgs e) { e.RequestCatch = CatchDispatcherException(e.Exception); }
private void UnhandledExceptionFilter(object sender, DispatcherUnhandledExceptionFilterEventArgs generatedException) { generatedException.RequestCatch = this.ShouldEatException(generatedException.Exception); int num = generatedException.RequestCatch ? 1 : 0; }
/// <summary> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void DispatcherOnUnhandledExceptionFilter(object sender, DispatcherUnhandledExceptionFilterEventArgs e) { e.RequestCatch = true; MessageBox.Show(e.Exception.Message); }
private void Dispatcher_UnhandledExceptionFilter(object sender, DispatcherUnhandledExceptionFilterEventArgs e) { HandleUnhandledException(e.Exception); }
private void DispatcherUnhandledExceptionFilter(object sender, DispatcherUnhandledExceptionFilterEventArgs e) { // Do nothing here. }
private void Dispatcher_UnhandledExceptionFilter(object sender, DispatcherUnhandledExceptionFilterEventArgs e) { MessageBox.Show($"DISPATCHER FILTER:{Environment.NewLine}{e.Exception}"); }
void OnUnhandledExceptionFilter(object?sender, DispatcherUnhandledExceptionFilterEventArgs e) { e.RequestCatch = true; Handle(e.Exception); }