.net - Clarification on Exception handling -
its understanding when exception
thrown bubble call stack until handled (within try/catch block) , if never happens exception go far reach program.main() , if still not handled deemed 'unhandled exception' runtime.
is correct? i've searched high , low , cannot find information agrees this? inaccuracies in i've said?
its understanding when exception thrown bubble call stack until handled (within try/catch block) , if never happens exception go far reach program.main() , if still not handled deemed 'unhandled exception' runtime.
your description, though not inaccurate per se, extremely incomplete; not describe happens cases with:
- finally blocks
- fault blocks
- catch blocks filters
note last 2 clr features not exposed c# language, still exist.
the control flow 3 cases plus ordinary catch blocks can quite complex.
if want more complete understanding of how works, recommend thorough , close reading of christopher brumme's detailed article on subject:
http://blogs.msdn.com/b/cbrumme/archive/2003/10/01/51524.aspx
Comments
Post a Comment