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 delegates in c# and uses of delegates?

789


What are the new features in c# 2.0?

917


Explain about ODP.net

1184


what is IComparable

942


What is connection pooling in ado.net?

890


What is entity framework in c#?

871


What is the advantage of static class in c#?

897


What is difference between list and ilist in c#?

843


What is thread in c#?

902


How can I use .NET components from COM programs?

840


What is getenumerator?

803


What is using in c#?

805


Compare and contrast between the System.Array.CopyTo() and Clone()?

921


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

871


What is a delegate? How can it works?

1033