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

Is friend a constructor?

0 Answers  


What is tryparse?

0 Answers  


What is private and shared assembly?

0 Answers  


How encapsulation and abstraction defined/used in C#.NET.

8 Answers   Synechron,


What is the use of 'as' Keyword in C# ?

0 Answers   HCL,


Why do we need constructor?

0 Answers  


What do you mean by serialization in .NET?

0 Answers   Accenture,


When should I use static in C#?

0 Answers   SwanSoft Technologies,


What is response redirect in c#?

0 Answers  


How do I type a whitespace character?

0 Answers  


How can you use abstract class and interface?

0 Answers   Accenture,


What you mean by inner exception in c#?

0 Answers  


Categories