Senator Guerra Souty original series calendar,replica hublot blue steel peach pointer collocation of rolex replica Rome digital scale, track type minute replica watches scale shows that the classical model is swiss replica watches incomparable, wearing elegant dress highlights.
mr-ponna.com

 

YOU ARE HERE: HOME Questions What is difference between the throw and throw ex in NET



Difference between "throw" and "throw ex" in .NET

View(s): 60727

What is difference between the "throw" and "throw ex" in .NET?

Answer 1)
 
  • If you use "throw" statement, it preserve original error stack information.
  • If you use "throw ex" statement, stack trace of the exception will be replaced with a stack trace starting at the re-throw point.
So it is very important to just use the throw statement, rather than throw ex because it will give you more accurate error stack information.

  Asked in:  Accenture   Expertise Level:  Experienced
  Last updated on Monday, 26 May 2014
4/5 stars (76 vote(s))

Register Login Ask Us Write to Us Help