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
What is data caching?
What is the server of asp.net?
What is a viewstate?
What are server objects?
What is http protocol and how it works?
What is the use of service provider?
What is distributed system in asp.net?
Describe the method to create a permanent cookie?
What is a page life cycle? What are the events in a page life cycle?
where can i gather the materials for MCP certification
What is GAC in ASP.NET 2.0
What is the significance of attaching a profile while creating a user?
3. What goals do you have in your career?
What is sta?
What are the main differences between asp and asp.net?