OleViewDotNet.Program.UnhandledExceptionHandler C# (CSharp) Метод

UnhandledExceptionHandler() статический приватный Метод

Unhandled exception event handler
static private UnhandledExceptionHandler ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e System.UnhandledExceptionEventArgs
Результат void
        static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e)
        {
            MessageBox.Show("Unhandled Exception: " + e.ExceptionObject.ToString(),
                "Unhandled Exception", MessageBoxButtons.OK, MessageBoxIcon.Error);
            Environment.Exit(1);
        }