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
Explain the difference between a namespace and assembly name in .net?
What is static classes?
How many types of constructors are there in c#?
What is razor view in c#?
What can we do to handle multiple exceptions?
What is a service layer c#?
Explain the difference between directcast and ctype.
Is it possible to nest cfml conditional tags?
Why are strings immutable c#?
What is the difference between arraylist and list in c#?
What is private constructor c#?
What are extensions in c#?
What is the use of system.environment class in c#.net?
Illustrate the process of code compilation in c#?
Is array thread safe c#?