Home > DeveloperSection > Forums > Difference between Throw Exception and Throw Clause
Manoj Bhatt
Manoj Bhatt

Total Post:154

Posted on    January-27-2016 10:55 PM

 C# C#  .NET 

 1 Reply(s)
 590  View(s)
Rate this:
Hi All,
Please anyone can give a answer, what difference between Throw Exception and Throw Clause.

Thank you.

Anupam Mishra

Total Post:135

Posted on    January-28-2016 3:49 AM

The Throw exception overwrites the stack trace and this makes it hard to find the original code line number that has thrown the exception.
Throw clause basically retains the stack information and adds to the stack information in the exception that it is thrown.

For more details you click here.

Don't want to miss updates? Please click the below button!

Follow MindStick