Brilliant exception handling I found in an app i had to work on

Brilliant exception handling I found in an app i had to work on

See all comments

This can't compile, can it? Only a madman commits code which doesn't compile.

Why wouldn't it? It's syntactically valid C#, with the added bonus of destroying the stack trace

Who needs stack traces anyway? Just search all of your code on the word throw until you have the right one