The global meaning of "in one place", for example. not a few attempts ... catches, for example. on each event handler. The proven meaning of โknown to workโ - I know that covering both .NET and other exceptions is not straightforward.
Thanks.
The solution encoded from the answers below.
Note. This is believed to apply to exceptions from additional threads.
static class Program { static void MyHandler(Exception e) { MessageBox.Show(e.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } static void MyThreadExceptionEventHandler(object sender, ThreadExceptionEventArgs args) { MyHandler(args.Exception);
source share