U
Uriah Piddle
Hi Gang,
I read a blog by Karl Sequin on catching errors and it has been sinking in
and I can see the merits. The gist of it is that you really should catch
only those errors that you can actually resolve in code and let the rest of
them (the vast majority) blindly bubble up to the global error catcher. Here
is the blog:
http://codebetter.com/blogs/karlseguin/archive/2006/04/05/142355.aspx.
I infer from this that you should not really be writing a whole lot of Try
Catch Finally blocks -- pretty much just cleaning up with Finally or Using
statemtnts and letting nature take its course.
I really can't think of a reason not to follow this method but I was
wondering if I'm missing something.
Thanks for any ideas.
Steve
I read a blog by Karl Sequin on catching errors and it has been sinking in
and I can see the merits. The gist of it is that you really should catch
only those errors that you can actually resolve in code and let the rest of
them (the vast majority) blindly bubble up to the global error catcher. Here
is the blog:
http://codebetter.com/blogs/karlseguin/archive/2006/04/05/142355.aspx.
I infer from this that you should not really be writing a whole lot of Try
Catch Finally blocks -- pretty much just cleaning up with Finally or Using
statemtnts and letting nature take its course.
I really can't think of a reason not to follow this method but I was
wondering if I'm missing something.
Thanks for any ideas.
Steve