Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to throw an caught exception from cath block?

Answer Posted / lonesloane

try{
// code that throws exception
}
catch(Exception ex){
// Do whatever needed with exception
Console.Writeline(ex.Message);
throw; <== will re-throw the caught exception
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a private assembly and a shared assembly?

1053


What is float in unity?

957


Is c# and c same?

938


Is c# a keyword?

978


What is state c#?

932


Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?

1024


What is the function of the not null constraint?

990


Which controls do not have events?

1071


In a memory when you Box and Unbox a value-type what happens?

975


What is wpf application in c#?

916


Define collections?

1033


Is it possible to have a static indexer in c#? Allowed in c#.

1002


HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

996


What are the concepts of dispose method?

984


How long can a string be c#?

960