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

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 ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is reflection in c#?

910


Is c# easier than c++?

924


what is a static constructor?

1220


What is the difference between Static, Const and read only?

1080


How a two-dimensional array declared in C#?

970


What is yield in c#?

878


What is global asax in c#?

941


What is an xsd file?

925


What is the meaning of int parse in c#?

952


Define collections?

974


Which string method is used for concatenation of two strings in c#?

1016


How can I use .NET components from COM programs?

916


What is instantiating a class in c#?

1041


what is the meaning of Object lifetime in OOPS

975


Explain how do I convert a string to an int in c#?

973