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
Which operator cannot be overloaded in c sharp?
Can we inherit two classes in c#?
Can structs in c# have destructors?
What is tryparse?
What does writeline mean?
What is the difference between a variable and a literal?
Why singleton pattern is used in c#?
What is a predicate in c#?
Why array is faster than arraylist in c#?
What is the CTS, and how does it relate to the CLS?
List down the access modifiers available in c#?
Define c# delegate?
What is primitive types in c#?
What is the difference between convert and parse in c#?
What is ac callback?