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

Explain the code Access Security (CAS) in .net Framework?

1206


Can you explain page lifecycle in net?

930


How many types of Cookies are available in ASP.NET?

1043


How to use multiple scriptmanager controls in a web page?

1057


What is query string? What are its advantages and limitations?

934


What is Web API?

1107


Explain what is event bubbling?

986


What are Caching techniques in .NET

1004


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

2005


What is difference Between Authentication and authorization?

1083


What is the difference between localization and globalization?

986


From which base class all web forms are inherited?

936


What is the difference between a cookie and a pixel?

903


What is cookies cache and session?

913


What are the main advantages of using asp.net?

999