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 / gustav bouwer

This (as above) will re throw the exception.

catch (Exception e)
{
throw e;
}

This passes along the ORIGINAL exception so you keep your
stack trace.
catch (Exception e)
{
throw;
}

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 xpath in c#?

938


Why constructor is used in c#?

890


Can abstract class have constructor?

856


What is hashset c#?

968


Explain the difference between “as” and “is” operators used in c#?

938


Explain manifest & metadata in c#.

997


Name some properties of array.

957


Explain About namespaces

969


Explain copy constructor?

1133


What is a generic method?

947


What is a partial class in c#?

1010


What is msil in c#?

931


What is the property of class?

1053


In a single .NET DLL how many classes it contains?

915


What do you mean by serialization in .NET?

1008