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
How do you determine whether a string represents a numeric value?
Explain the three test cases in unit testing?
In a site to turn off cookies for one page which method is followed?
What is int64 in c#?
Explain the role of the datareader class in ado.net connections?
What is console read in c#?
Define collections?
When a Static Constructor is called in a Class?
Hi Friends, I am going through Siemens Interview Procedure from last 1+1/2 months. I went through 1 written + 2 Technical + 1 Managerial Round process after which I got call from HR informing that "you are selected and we would like to meet you for HR round". HR round was very nominal compared to MR. HR Round last for hardly 5 mins. They told me that you will get the final result on Friday. Still I have not received any feedback from them. Please help!!!
What are Uses of CLR
What is system predicate?
What is Implementation inheritance and interface inheritance?
What does it mean to override a method?
Is int a struct in c#?
What are c# collections?