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
What’s a strong name?
Is a structure a class?
What is the base class from which all value types are derived?
What is the purpose of a constructor in c#?
What is parallel foreach in c#?
Does c# support try-catch-finally blocks?
Can an abstract class have a constructor c#?
Why do we parse in c#?
Is Multiple-inheritance supported by c#?
What are anonymous functions in c#?
Describe the overview of clr integration.
Is concurrent queue thread safe?
What is type cast in C#?
What is collection of classes in c#?
Is it true that all c# types derive from a common base class?