DIFFERENCE BETWEEN THROW EXCEPTION AND THROW CLAUSE

Manoj Bhatt

Total Post:154

Points:1086
Posted by  Manoj Bhatt
C#  .NET 
C#
 612  View(s)
Ratings:
Rate this:
Hi All,
Please anyone can give a answer, what difference between Throw Exception and Throw Clause.

Thank you.
  1. Anupam Mishra

    Post:135

    Points:949
    Re: Difference between Throw Exception and Throw Clause

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!