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 difference between a function and a method?

936


Whats an assembly? Describe the importance of assembly?

910


What is difference between dynamic and var in c#?

944


Can we inherit a private class in c#?

903


What is a hash table c#?

879


Define a jagged array in c#?

903


Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?

832


What is interface inheritance?

957


Why do we need collections in c#?

870


What is a copy constructor in c#?

1002


What is an assembly in .net?

993


what are some characteristics of an array?

959


How main method is called in c#?

949


Is concurrent queue thread safe?

900


Explain the difference between // comments, /* */ comments and /// comments?

887