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

What is the use of base keyword? Tell me a practical example for base keyword’s usage?

851


what is difference between is and as operators in c#?

949


What is predicate builder?

880


what happens if you inherit multiple interfaces and they have conflicting method names?

839


What is view state c#?

826


What is uint c#?

850


Is a c# interface the same as a c++ abstract class?

923


What is difference between field and property in c#?

788


What is hierarchical inheritance in c#?

907


What is gac? What are the steps to create an assembly and add it to the gac?

860


Is as keyword in c#?

811


What is jagged array?

877


Give some examples of commonly used i/o classes?

865


List down the commonly used types of exceptions in .net

840


How to declares a two-dimensional array in C#?

977