How to throw an caught exception from cath block?
Answer Posted / gustav bouwer
This (as above) will re throw the exception.
catch (Exception e)
{
throw e;
}
This passes along the ORIGINAL exception so you keep your
stack trace.
catch (Exception e)
{
throw;
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is xpath in c#?
Why constructor is used in c#?
Can abstract class have constructor?
What is hashset c#?
Explain the difference between “as” and “is” operators used in c#?
Explain manifest & metadata in c#.
Name some properties of array.
Explain About namespaces
Explain copy constructor?
What is a generic method?
What is a partial class in c#?
What is msil in c#?
What is the property of class?
In a single .NET DLL how many classes it contains?
What do you mean by serialization in .NET?