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
What is new method in c#?
why delegate is type safe?
What is xor operation?
write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5
What is firstordefault c#?
What is console readkey in vb net?
What all details the assembly manifest will contain?
How do you pronounce c#?
Why do canadians say zed?
what is the difference between a struct and a class in c#?
Explain manifest & metadata in c#.
In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?
what are the contents of an assembly ?
What are the boolean data types in c#?
Is string immutable in c#?