.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> .NET Framework >> Post New QuestionBookmark and Share Subscribe to Forum

How to use throw () method in exception handling. Give me an example

Posted By: Ramesh P     Posted Date: October 31, 2010    Points:2   Category :.NET Framework
How to use throw () method in exception handling. Give me an example

Responses
Author: Amit Mehra             
Posted Date: November 01, 2010     Points: 5   

Hi,

You can try like this to use thow keyword in exceptional handling

try
{
// Your rest logic
}
catch(Exception ex)
{
throw ex;
}


Thanks,
Amit
Please "Mark As Answer " if this post help you.


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend