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 is the difference between a private assembly and a shared assembly?
What is float in unity?
Is c# and c same?
Is c# a keyword?
What is state c#?
Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?
What is the function of the not null constraint?
Which controls do not have events?
In a memory when you Box and Unbox a value-type what happens?
What is wpf application in c#?
Define collections?
Is it possible to have a static indexer in c#? Allowed in c#.
HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only
What are the concepts of dispose method?
How long can a string be c#?