Why is it a bad idea to throw your own exceptions?
Answer Posted / guest
Well, if at that point you know that an error has occurred,
then why not write the proper code to handle that error
instead of passing a new Exception object to the catch
block? Throwing your own exceptions signifies some design
flaws in the project.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Can we maintain state in webservice?
what is the purpose of using statement in c#
What is use of a HashTable in .NET?
What is the difference between static and private constructor in c#?
What are extender provider components? Explain how to use an extender provider in the project.
Why would you use untrusted verification?
What is activator c#?
Name which controls do not have events?
What is an xsd file?
Why use a singleton instead of static methods?
What is ienumerable and iqueryable?
What is difference between float and decimal?
What are cookies in c#?
How do you implement thread synchronization in c#?
What is the and operator in c#?