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

Can the validation occurs in server-side or client-side? If the validation occurs why should we do?

707


Why asp.net is better than php?

578


What are the two properties that are common on every validation control?

638


Are cookies client side or server side?

577


Name the namespace which is used by ado.net?

605






What do you mean by role-based security?

640


Explain the page lifecycle of an asp.net mvc? : asp.net mvc

500


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

650


How to Separate background image and front image from original picture....

638


What is session in asp.net?

605


What is voluum?

635


In how many ways we can retrieve table records count?

626


What is the use of ASP.NET routing?

638


Disable Mouse right click on web page in asp.net?

666


Why is xap important?

690