Yes ! I do this all the time. NOte, if the code is in constant
development, and a "work in progress" then this is not a problem for me. If
the code is packages and sold to consumers then that is a different story.
JIM
"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:ce**********************************@34g2000h sf.googlegroups.com...
On Jul 9, 8:35 am, "Peter Morris" <mrpmorri...@SPAMgmail.comwrote:
Is there actually *any* good reason to catch an exception and then
immediately rethrow it without doing anything else?
The only useful thing that may be ascertained from this is that you have a
developer that needs talking to :-)
There is *one* temporary use for it - it makes it easy to add a
breakpoint for when the exception is thrown *just* at that location. I
wouldn't be surprised to learn that the code had been added during a
debugging session, and then the developer forgot to remove it.
Jon