Can we throw exception from catch block ?
Answer Posted / nilesh
Yes. A throw statement can be used in the catch block to re-
throw the exception, which has been caught by the catch
statement. For example:
catch (InvalidCastException e)
{
throw (e); // Rethrowing exception e
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the types of session in asp.net?
Do you know caching feature?
Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?
Will session work if cookies is disabled?
What are the different types of proxy patterns?
Define static function?
Does asp.net still recognize the global.asa file?
Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?
What are the elements of a website?
Explain difference between dataset and datareader?
What is the used of "ispostback" property?
What's the ASP.Net Application life cycle?
Explain how is the asp.net mvc architecture different from others? : asp.net mvc
How you can access the properties and controls of master pages from content pages?
What is the asp.net mvc folder conventions? : asp.net mvc