donderdag, augustus 17, 2006

 

throw; vs. throw ex; Here's the difference!

Okay, so it's been more than a couple days since I last posted. . .and my good friend infinity88 reminded me that the blogosphere is waiting for an answer. So, as promised here's the answer to the notorious throw; vs throw ex; question:The difference is that throw; preserves the original stack trace and throw ex; truncates the stack trace below the method in which the throw ex; call is located.

Read more...


ref:
http://weblogs.asp.net/infinitiesloop/archive/2006/08/17/The-difference-between-_2600_quot_3B00_throw_3B002600_quot_3B00_-and-_2600_quot_3B00_throw-ex_3B002600_quot_3B00_.aspx