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 are cao and sao.
Does web services support data reader like pom project?
What is asynchronous call?
Which authentication uses a combination of windows and iis authentication?
ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?
Explain the difference between asp & asp.net.
What is cookies in asp net?
Explain the difference between sql invalidation and sql notification.
What is query string in asp.net?
1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5
How is the asp.net mvc architecture different from others? : asp.net mvc
What is boxing and unboxing in asp.net?
Name the two properties are on every validation control?
When Cookies are expired in ASP.NET?
What is the difference between session object and application object?