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 an ienumerable in c#?
What does static mean in c sharp?
What is the difference between a class and an object c#?
What is the class in c#?
What is verbatim string literal in c#?
If you define a user defined data type by using the class keyword, is it a value type or reference type?
What is the difference between integer and double?
Can a string be null c#?
Explain about Oops concept
How to properly clean up excel interop objects?
What is default constructor in c#?
What is the difference between null and string empty in c#?
Can we assign null value to integer?
What is managed code?
What is different between Implicit conversion and Explicit conversion in C#?