When an exception goes uncaught in a .NET app, the virtual machine displays an error message to the user. I'd like to be able to display my own error message, without having to put a catch
block at the top level of my app (because that makes debugging uncaught exceptions more tedious).
Right now I display my own error dialog in an AppDomain.UnhandledException
event listener, but the .NET-created dialog still shows up. I'd also like to avoid Environment.FailFast
as that would bypass my finally
blocks (to which I'm still somewhat attached).