How to throw an caught exception from cath block?
Answer Posted / chandana
use the 'throw' keyword to throw an exception from a catch
block. ex,
catch (Exception e)
{
throw e;
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is difference between class and interface in c#?
Is c# strongly typed?
Why do we use methods in c#?
Which is better python or c#?
What is an array? Give the syntax for a single and multi-dimensional array?
What is difference between static and readonly in c#?
What are the Configuration files in .net?
How can we set class to be inherited, but prevent the method from being over-ridden?
What is a string c#?
Why do we need ienumerable in c#?
How do switch statements work?
When a Static Constructor is called in a Class?
Can you use all access modifiers for all types?
Explain how do you debug an asp.net web application?
Why would you use a class property in c#?