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...

Can we throw exception from catch block ?

Answer Posted / nilesh

Yes. A throw statement can be used in the catch block to re-
throw the exception, which has been caught by the catch
statement. For example:

catch (InvalidCastException e)
{
throw (e); // Rethrowing exception e
}

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of session in asp.net?

967


Do you know caching feature?

951


Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?

987


Will session work if cookies is disabled?

1012


What are the different types of proxy patterns?

1157


Define static function?

1011


Does asp.net still recognize the global.asa file?

1105


Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?

960


What are the elements of a website?

1000


Explain difference between dataset and datareader?

1042


What is the used of "ispostback" property?

1116


What's the ASP.Net Application life cycle?

1103


Explain how is the asp.net mvc architecture different from others? : asp.net mvc

1014


How you can access the properties and controls of master pages from content pages?

952


What is the asp.net mvc folder conventions? : asp.net mvc

919