Noocyte’s Weblog

February 22, 2008

Discovering Empty Try/Catch Blocks – Christopher Bennage

Filed under: Link, Work — Tags: , — noocyte @ 12:56

Regex in Find dialog in VS.. Of couse! I’ve seen it, but never used it.

I HATE, really, HATE empty try/catch blocks. Almost just as bade are these:

try {
   blah blah;
catch(Exception ex) {
    throw ex;

Now we loose the stack so we don’t really know what happened when the original exception was thrown. 

Discovering Empty Try/Catch Blocks – Christopher Bennage


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at

%d bloggers like this: