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?



Why is it a bad idea to throw your own exceptions?..

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

More C Sharp Interview Questions

What is the main purpose of xml?

0 Answers  


What is an inheritance in c#?

0 Answers  


Why do we need interfaces?

2 Answers   HCL,


For methods inside the interface why can’t you specify the accessibility modifier?

0 Answers   Siebel,


Is there hashmap in c#?

0 Answers  


if you do have a stack overflow profile.what is your ranking?

0 Answers  


What is the difference between field and variable in c#?

0 Answers  


What is Event - Delegate?

0 Answers  


What is stringreader in c#?

0 Answers  


What is using keyword?

0 Answers  


Which attribute is used in order that the method can be used as webservice?

0 Answers  


What is difference between constants and read-only?

0 Answers  


Categories