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

Which operator cannot be overloaded in c sharp?

874


Can we inherit two classes in c#?

954


Can structs in c# have destructors?

963


What is tryparse?

940


What does writeline mean?

983


What is the difference between a variable and a literal?

1056


Why singleton pattern is used in c#?

957


What is a predicate in c#?

925


Why array is faster than arraylist in c#?

992


What is the CTS, and how does it relate to the CLS?

1000


List down the access modifiers available in c#?

876


Define c# delegate?

1005


What is primitive types in c#?

877


What is the difference between convert and parse in c#?

937


What is ac callback?

909