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

Is inheritance possible in c sharp?

1009


Can a class be protected in c#?

863


Explain “static” keyword in c#?

845


Is it possible to force garbage collector to run?

858


How can I get around scope problems in a try/catch?

875


What are value types and reference types?

1064


What are strings in c#?

899


What is anonymous methods in c#?

1029


What is the difference between firstordefault and first?

861


What are the fundamental principles of oo programming?

1065


Does unity use c++ or c#?

844


Are arraylist faster or arrays?

926


what is the difference between convert.tostring() and tostring() functions ?

999


What are fields in c#?

849


Is a games console a computer?

883