Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is difference between tostring() vs convert.tostring() vs (string) cast

1092


So what makes your code really object-oriented #?

1013


Is there regular expression (regex) support available to c# developers?

1014


What is data hiding in c#?

951


How do I unload an assembly?

996


How do I get deterministic finalization in c#?

1105


What is string in c# net?

963


Can constructor have return type c#?

1054


What is gui in c#?

1016


What is a nested type. Give an example?

1076


What issues can be faced while delivering code?

1971


In which order the destructor is called for an inherited class?

1031


What is encapsulation in csharp?

1032


What is the implicit name of the parameter that gets passed into the class set method?

1040


How to use delegates with events?

1042