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 access modifier in c#?

842


What is razor view in c#?

781


Explain the constructor in c#.

1040


How can we set the class to be inherited, but prevent the method from being over-ridden?

918


What is using keyword?

866


What are native methods?

815


What do you mean by sealed classes and static classes?

926


What do u mean by delegation?

884


Does the system.exception class have any cool features?

945


Which are access modifiers available in c#?

907


Is there hashmap in c#?

871


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

899


How does one compare strings in c#?

950


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

882


Do void methods have parameters?

900