SIL.FieldWorks.FieldWorks.HandleUnhandledException C# (CSharp) Méthode

HandleUnhandledException() private static méthode

Catches and displays otherwise unhandled exception, especially those that happen during startup of the application before we show our main window.
private static HandleUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e System.UnhandledExceptionEventArgs
Résultat void
		private static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs e)
		{
			if (e.ExceptionObject is Exception)
				DisplayError(e.ExceptionObject as Exception, e.IsTerminating);
			else
				DisplayError(new ApplicationException(string.Format("Got unknown exception: {0}",
					e.ExceptionObject)), false);
		}
FieldWorks