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 difference between a private assembly and a shared assembly?

0 Answers  


What if an error occurs in Catch block, how can you prevent it?

2 Answers   IBM,


Is an array an object c#?

0 Answers  


What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?

0 Answers  


Explain About web methods and its various attributes

0 Answers   Digital GlobalSoft,


What's the difference between a method and a procedure?

0 Answers  


What operator means?

0 Answers  


Is it possible to implement an interface to a structure? Is it possible to extend a struct? Is it possible to inherit a class to struct?

9 Answers   IBM, Logica CMG, TCS,


Differentiate between method overriding from method overloading with its functionality?

0 Answers   Siebel,


Can an interface inherit an interface

1 Answers   Synechron,


Write a C# program to find the Factorial of n

0 Answers  


what are the benefits in using c# ?

1 Answers  


Categories