Why is it a bad idea to throw your own exceptions?
Answer Posted / supratim sengupta
Actually throwing your own exceptions is an excellent way
to handle various exceptions the way you want it to handle.
You can centralize the whole exception handling. It could
be useful in product development where you might miss out
some exception conditions and then you can always write a
common custom exception handler that can shoot you an email
with all the details of the exception.
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Can we override interface methods in c#?
What is difference between static and constant variable?
What does return do in for loop?
What is the use of base keyword? Tell me a practical example for base keyword’s usage?
Explain how do you debug an asp.net web application?
What is the difference between “out” and “ref” parameters in c#?
Which controls do not have events?
How can I develop an application that automatically updates itself from the web?
What is using directive in c#?
What is razor view in c#?
What is the purpose of dictionary in c#?
Why do we use lambda expression in c#?
How you will create satellite assemblies?
2. What happened when BO object has been called?
What is hashtable in c# with example?