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 catch(Exception) almost always a bad idea?

Answer Posted / anna

it's not the bad idea of using catch exception.
catch exception catches all the exceptions in try block.
if we use these blocks, we will be able to know where the
exact error is.
if we use one try block, we must use the catch block .

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?

1123


What is difference in .net 1.1 and .net 2.0?

1043


What is custom attribute?

970


What are query strings used for?

933


What is difference between View State and Hidden Field in ASP.NET?

1143


How would you enable impersonation in the web.config file?

994


What is the significance of attaching a profile while creating a user?

1039


Give 2 examples for scenarios when routing is not applied?

1046


What is custom events? How to create it?

1053


Is it possible to write code in many languages in one asp.net project?

1026


What is page request in asp.net?

958


Can more than one person use the same login?

969


Does asp.net still recognize the global.asa file?

1105


We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?

1913


How you can return View from ASP.NET Web API method?

1011