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
What is difference between comparable and comparator?
How can we set class to be inherited, but prevent the method from being over-ridden?
What is whitespace in c#?
can you create a function in c# which can accept varying number of arguments
Explain About Postback
What happens during the process of boxing?
What is private constructor c#?
What is the use of console readkey ()?
What types of object can I throw as exceptions?
What is the example of predicate?
How do I convert a string to an int in c#?
What is Wrapper class in dot net?
what is the difference between convert.tostring() and tostring() functions ?
Can you put two constructor with the same structure in a class?
What is delegates in c#?