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 the difference between null and string empty in c#?
Explain what a diffgram, and a good use for one Define diffgram? How it be used?
How many types of delegates are there in c#?
What is difference between singleton and static class in c#?
Why use a singleton instead of static methods?
What are the fundamental oop concepts?
Which of the following API is used to hide a window?
What are the basics of c#?
What is the difference between interface and functional interface?
What is the difference between const and readonly in c#.net?
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?
What is verbatim string?
what is IDisposal interface,IComparable,IEquatable,IFormatable
Does hashset allow duplicates c#?
What is the difference between “finalize” and “finally” methods in c#?