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

List down the sequence of methods called during the page load.

900


Define static member?

985


Explain the asp.net page life cycle.

1066


Why we use asp.net for website development?

896


What is enableviewstatemac in asp net?

1044


List the types of authentication supported by asp.net?

934


What is the benefit of WebAPI over WCF?

1000


Write a code for passing ArrayList in Web API?

1528


What are Session states available and its Uses?

2211


What is virtual directory in asp.net?

1039


What is a swagger in web api?

1051


How does session work in asp net?

1048


What are server activated objects?

1159


How you can access the values from the Repeater control in ASP.NET?

1064


Which adapter should you use, if you want to get the data from an access database?

975