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

What is virtual directory in asp.net?

994


How does u get record no from 5 to 15 from a dataset of 100 records?

906


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

870


What is the difference between exe and dll?

1060


Explain automatic memory management in .net.

965


Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

993


What is repository pattern in mvc.net? : asp.net mvc

943


Why is an object pool required?

976


What is Razor View Engine

1026


What can you do with asp.net?

895


In asp.net, how can you validate drop down box?

1095


Which protocol is used to call web service?

943


What is the use of asp.net web api?

1029


How do you do Client-side validation in .Net?

1037


What are the types of caching in asp.net?

995