Home > Software > .NET > ASP.NET
Interview Questions   Tutorials   Discussions   

ASP.NET - Can we throw exception from catch Block?




245
views
asked mar October 4, 2014 04:27 AM  

Can we throw exception from catch Block?


           

1 Answers



 
answered By siddhant   0  

Throwing Objects

You can throw an object if it is either directly or indirectly derived from the System.Exception class. You can use a throw statement in the catch block to throw the present object as:

Catch(Exception e)
{
   ...
   Throw e
}
flag   
   add comment

Your answer

Join with account you already have

FF

Preview

 Write A Tutorials
Online-Classroom Classes
www.writeabc.com


  1 person following this question

  Question tags

asp.net × 1

Asked 2 years and 3 months ago ago
Number of Views -245
Number of Answers -1
Last updated
3 years and 2 months ago ago

Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert