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 basic steps are needed to display a simple report in crystal?

1003


What is a nullreferenceexception?

1078


What does this keyword mean in c#?

963


Is there hashmap in c#?

978


What is c-sharp (c#)?

996


Explain how many types of exception handlers are there in .net?

995


I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?

1009


What is the difference between ienumerable and enumerator?

963


What is datareader c#?

970


What are the advantages of properties in c#?

1017


What is the difference between select and selectmany?

1010


Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.

2403


Which controls do not have events?

1070


Can a struct be null?

972


How does bubble sort work?

957