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
What are the properties in c#?
Contrast System.String and System.Text.StringBuilder classes?
How do you create dlls in .NET
What is datetime parse in c#?
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used
How can you sort strings in array that are passed to method as arguments?
What is indexer c#?
What does protected internal access modifier mean?
What are cookies in c#?
What is mvc pattern in c#?
What is list array in c#?
Explain the process of Serialization?
Write a program in C# for checking a given number is PRIME or not.
What is default c#?
What's new in c#?