Re-throwing exceptions

Brad Wilson wrote a short thing on re-throwing exceptions that I like:

What bugs me is that "throw exception;" line. In my mind, that code is always wrong, because it throws away valuable information. It's not your exception, but you're "laying claim" to it by pushing in your own stack trace, killing the potentially valuable information in the original stack trace

Read the full post (it's a short one).

No Comments