by Pxtl · 11y ago · 0 comments
Rethrowing an exception should not screw up the stack-trace. But they do, so we need to use the irritating exception filter mechanic.
That more or less gives you what Microsoft calls 'edit and continue' in every program, where your high-level code decides what code does the edit and decides on how to continue.
Some discussion with real-world usage scenarios at http://lambda-the-ultimate.org/node/1544. Example at http://c2.com/cgi/wiki?LispRestartExample
The other alternative is what C# 6 added: eliminating the need to rethrow in as many circumstances in the first place, so 'logically' unhandled exceptions can be actually unhandled.