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
How to transpose multi-dimensional array?
Which program construct must return a value?
Can a abstract class have a constructor?
Enlist some of the properties of a thread class?
What is the difference between Java and .NET garbage collectors?
Explain the accessibility modifier protected internal?
What is difference between iqueryable and ienumerable in c#?
what happens if you inherit multiple interfaces and they have conflicting method names?
Describe the types of comments in c#?
Can we have multiple threads in one app domain?
what are some characteristics of an array?
What is the usage of transponders?
Is c# a strongly-typed language?
Which are the access modifiers available in c#?
Why is c# a good programming language?