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
Why singleton class is sealed?
What is namespace give the example?
What is inheritance in csharp?
What are the steps to make an assembly to public?
What is datagrid c#?
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
Can a dictionary have the same key?
Which technology is best for desktop application?
What is the difference between mobile application and desktop application?
Can we inherit partial class in c#?
What is data types in c#?
Explain the process of inheriting a class into another class?
What is difference between constants and read-only?
Is int a class in c#?
Explain the role of Garbage collector and its generations?