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 delegates in c# and uses of delegates?
What are the new features in c# 2.0?
Explain about ODP.net
what is IComparable
What is connection pooling in ado.net?
What is entity framework in c#?
What is the advantage of static class in c#?
What is difference between list and ilist in c#?
What is thread in c#?
How can I use .NET components from COM programs?
What is getenumerator?
What is using in c#?
Compare and contrast between the System.Array.CopyTo() and Clone()?
What is the difference between convert and parse in c#?
What is a delegate? How can it works?