ScreenToGif.App.App_OnDispatcherUnhandledException C# (CSharp) Method

App_OnDispatcherUnhandledException() private method

private App_OnDispatcherUnhandledException ( object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e ) : void
sender object
e System.Windows.Threading.DispatcherUnhandledExceptionEventArgs
return void
        private void App_OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
        {
            LogWriter.Log(e.Exception, "On Dispacher Unhandled Exception - Unknow");

            var errorViewer = new ExceptionViewer(e.Exception);
            errorViewer.ShowDialog();

            e.Handled = true;
        }