How to throw an caught exception from cath block?
Answer Posted / lonesloane
try{
// code that throws exception
}
catch(Exception ex){
// Do whatever needed with exception
Console.Writeline(ex.Message);
throw; <== will re-throw the caught exception
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How does dll hell solve in .net?
How big is a float?
What is an enumerator in c#?
What is difference between sleep () and wait ()?
Explain the difference between event and a delegate in c#?
What is a decimal c#?
What’s a strong name?
Why we use extension methods in c#?
What is the property of a class in c#?
Explain what a diffgram, and a good use for one Define diffgram? How it be used?
What is the do while loop code?
What is dictionary collection in c#?
Which is faster list or dictionary in c#?
Can we overload the main method in c#?
What is the difference between system.string and system.text.stringbuilder classes?