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 / devender kumar

Yes. we can throw the exception from the catch block.
If anyone have confusion then try this code:


protected void Button1_Click(object sender, EventArgs e)
{
try
{
Test();
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
private void Test()
{
try
{
throw new Exception("Dev");
}
catch (Exception ex)
{
throw ex;
}
}

Is This Answer Correct ?    40 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In order to get assembly info which namespace we should import?

999


In which event of the page viewstate is available?

875


What is asp.net and how it works?

1007


What are the data controls available in asp.net?

965


What is the difference between ASP Session State and ASP.Net Session State?

1087


How asynchronous call can be implemented using delegates?

998


Can we use MSSql as backend in asp.net...if yes then How.?

1040


What is the main difference between Asp.net and Vb.net?

1046


What is %20 in a url?

909


What is the state management in asp.net?

1022


What is a web api?

1059


What is the difference between dispose() and finalize()?

1014


What are assemblies and namespaces and explain the difference between them ?

1085


What is view state and how it works in asp net?

989


How Session outproc in Sqlserver stored?

2754