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 / 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


Please Help Members By Posting Answers For Below Questions

Why data types are important?

942


What are the advantages of clr procedure over t-sql procedure?

980


What do you mean by parsing and how to parse a date time string in c#?

976


How many types of inheritance are there in c#?

889


What is sqlcommandbuilder c#?

923


Explain the term inheritance in C#.

939


What is the major difference between a custom control and user control?

1028


What is the difference between finalize() and dispose() methods?

977


What are the advantages of using partial classes?

986


What is a callback c#?

988


Major difference between Basic httpbinding and WShttpbinding?

1044


What is the advantage of dependency injection?

977


What is extension method in c# and how to use them?

916


What is data annotation in c#?

919


Explain the use of virtual, sealed, override, and abstract method?

863