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 are the differences between the response.write() and response.output.write()?

743


What is application Object?

760


How many types cache in asp net?

739


What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?

721


What are the components of ado.net?

692






How do you implement postback with a text box?

737


From which base class all web forms are inherited?

683


What is true about application service provider?

651


What permissions do asp.net applications posses by default?

807


can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it

1651


What is asp net theme?

717


What are web server controls in asp.net?

734


What is preprocessor in .net?

687


How would ASP and ASP.NET applications run at the same time on the same server?

2152


Explain code snippet to register exception filters from controller?

791