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

How to transpose multi-dimensional array?

1092


Which program construct must return a value?

1084


Can a abstract class have a constructor?

887


Enlist some of the properties of a thread class?

931


What is the difference between Java and .NET garbage collectors?

1038


Explain the accessibility modifier protected internal?

861


What is difference between iqueryable and ienumerable in c#?

873


what happens if you inherit multiple interfaces and they have conflicting method names?

897


Describe the types of comments in c#?

907


Can we have multiple threads in one app domain?

951


what are some characteristics of an array?

960


What is the usage of transponders?

965


Is c# a strongly-typed language?

994


Which are the access modifiers available in c#?

972


Why is c# a good programming language?

1006