public static void UnhandledExceptionHandler(object sender, Eto.UnhandledExceptionEventArgs e) { if (e?.ExceptionObject is GraphicsException ge) { MessageBox.Show(ge.Message); } }
private static void UnhandledException(object sender, Eto.UnhandledExceptionEventArgs e) { var info = new CrashReport(mainForm.extensionManager, e.ExceptionObject as Exception); crashReporter.Report(info); ExceptionQuit = true; Process.Start(Assembly.GetEntryAssembly().Location); Environment.Exit(-1); }
private void OnUnhandledException(object sender, Eto.UnhandledExceptionEventArgs e) { var ex = e.ExceptionObject as Exception; var errorReport = new ErrorReport(ex); if (errorReport.ShowModal(this)) { if (ex != null) { ExceptionLogging.Client.Config.Metadata.AddToTab("Exception Details", "stacktrace", ex.StackTrace); ExceptionLogging.Client.Notify(ex, Bugsnag.Severity.Error); } } Application.Instance.Quit(); }
public async static void UnhandledException(object sender, Eto.UnhandledExceptionEventArgs e) { var appInfo = await DriverDaemon.InvokeAsync(d => d.GetApplicationInfo()); var exception = (Exception)e.ExceptionObject; await File.WriteAllLinesAsync(Path.Join(appInfo.AppDataDirectory, "ux.log"), new string[] { DateTime.Now.ToString(), exception.GetType().FullName, exception.Message, exception.Source, exception.StackTrace, exception.TargetSite.Name } ); }
private static void UnhandledException(object sender, Eto.UnhandledExceptionEventArgs e) { var crashReporterStartedBefore = crashReporterStarted; var report = new CrashReport(mainForm.Bootstrapper.ExtensionManager, e.ExceptionObject as Exception); if (crashReporter != null && !crashReporterStarted) { crashReporterStarted = true; crashReporter.Report(report); } else { Console.Error.WriteLine(report.Serialize()); } if (!crashReporterStartedBefore) { ExceptionQuit = true; App.Restart(); Environment.Exit(-1); } }