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 does the parsefloat function do?

909


What is an int c#?

864


In which order the constructor is called for an inherited class?

1048


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

980


What is the implicit name of the parameter that gets passed into the class set method?

977


What is an escape sequence in c#?

975


Define a class and an object?

981


Which of these statements correctly declares a two-dimensional array in c#?

1062


Is string mutable in c#?

863


When To use HashTable In C#

1017


What are custom exceptions?

918


What is type class in c#?

994


What is the solution if you need to manipulate sets of items?

872


What is xaml file in c#?

958


What's the difference between class and object?

989