3 ms·
allowing unhandled exceptions to find their way up the call chain doesn't seem like a great idea to me Depends on the situation. For instance: I usually do tho
by stinos 12y ago
allowing unhandled exceptions to find their way up the call chain doesn't seem like a great idea to me
Depends on the situation. For instance: I usually do thorough checks on validity of arguments etc. If invalid/null ptr passed/etc (which then means there must a bug somewhere) some specific exception is thrown and this makes it all the way to the global unhandled exception handler which then take appropriate actions (dialog, log, kill application). None of the callers which are passing the invalid argument along know how to handle the error else the error wouldn't occur in the first place. I'm not sure there is a more appropriate way to handle this in eg C#?