private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) { #if DEBUG Debugger.Launch(); #endif Finsemble.DispatcherUnhandledException(mainWindow, e); Logger.Error("An Unhandled Exception has occurred. Please Check your event Logs.", e.Exception); Shutdown(); }
private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) { #if DEBUG Debugger.Launch(); #endif Finsemble.DispatcherUnhandledException(mainWindow, e); Debug.Print($"An Unhandled Exception has occurred. Exception: {e.Exception}"); Shutdown(); }