Why is it a bad idea to throw your own exceptions?
Answer Posted / 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 |
Post New Answer View All Answers
How do I create a delegate/multicastdelegate?
What is sqldatareader c#?
How do I enforce const correctness in c#?
What is jit? What are the different types of jit?
What are delegate methods?
how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com
What is the difference between field and variable in c#?
explain the three services model commonly know as a three-tier application.
Can abstract class have constructor?
What is the difference between properties and indexer in c#?
Explain the difference between a sub and a function in c#.
Which are the loop types available in c#?
How is exception handling implemented in c#?
What is default parameter in c#?
What does type safety mean?