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

If 200 is for all successful operation then why do we have 201 response codes?

901


How is session id generated?

913


Give 2 examples for scenarios when routing is not applied?

1030


Where the assembly is stored in asp.net?

992


Do session use cookies in asp net?

987


How to handle errors in Web API?

1162


What is session in web technology?

941


What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?

1155


What are the asp.net security controls?

1152


What is sdlc process?

981


What is work flow gen? how can it will work with .Net?

3023


What is xaml? Are xaml file compiled or built on runtime?

959


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

1086


Define the steps to set up validation control.

1027


How do I upload a file from my ASP.NET page?

1039