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
Explain About Virtual functions and their use.
How to install or uninstall a windows service?
Does constructor return any value in c#?
how encapsulation is implemented in c#
What is the use of ispostback in c#?
Explain about c# language.
What is difference between gridview and form view?
Which property of the textbox cannot be changed at runtime?
What is wcf c#?
What is the function of the not null constraint?
What is a helper method in c#?
What is a int in c#?
explain the three services model commonly know as a three-tier application.
What is token in c#?
What is difference between assembly and dll?