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
Why dictionary is used in c#?
What is property in c#?
What are the steps to create an assembly and add it to the gac?
What is console write in c#?
Can a method be sealed in c#?
What is difference between out and ref in c#?
what is main function of alternate teamplate of datalist?
What are static and dynamic variables?
what is the Difference between the public and private ?
What is uint64?
What is the difference between const and readonly in c#.net?
What is static void main in c#?
Is c# dictionary a hash table?
What's the difference between abstraction and encapsulation?
What is bit in c#?