Why is it a bad idea to throw your own exceptions?
Answer / daniel
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 | 2 No |
What are the collection types can be used in c#?
How many constructor can a class have?
What is a long in c#?
What do you know about device context?
Is null in c#?
What is COM Interoperability?
What does return do in for loop?
What is the difference between constants and read-only?
What is strong name assembly?
What is iqueryable and ienumerable in c#?
If you define integer variable and a object variable and a structure then how those will be plotted in memory ?
What is polymorphism in c sharp?