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 selector c#?

916


What is string in c# net?

922


What do you mean by synchronous and asynchronous operations?

978


What is the purpose of abstract class in c#?

939


What is cookies in c# asp net?

950


How long does it take to get a loop recorder put in?

861


What is use of singleton class in c#?

991


Which compiler switch creates an xml file from xml comments in the files in an assembly?

1013


Why abstract class can not be instantiated?

874


Explain About .NET Framework

920


Is struct object oriented?

901


What’s thread.sleep() in threading ?

1017


What is lazy loading entity framework?

1017


What is difference between a constant and read-only in C#?

966


What is the object class in c#?

970