I'm having a problem with an exception thrown by a backend (non gui) class
being intercepted by the framework before it has a chance to bubble up to the
GUI layer to display the appropriate error message.
Trying to localize the probem I wrapped every call going up the stack in
this sort of try/catch block:
try
{
/*calling statements*/
}
catch
{
throw;
}
Tracing it via the debugger, it's successfully thrown out of the assembly
where it occurs, is caught and rethrown by the first two methods inside the
gui, from the second method (which is a gui control event handler if it's
relevant) instead of propagating farther up the callstack, it's intercepted
by the framework which displays a details/continue error and eats the
exception.
I could move the error generation and shutdown code to a place in the
callstack before this happens, but the same error can (potentially) occur
elsewhere in the app, and in all cases should result in an identical action
(shutdown), so I'd like to handle it in only one place, with the other fatal
exceptions which are handled inside Main();