Why is catch(Exception) almost always a bad idea?

Answers were Sorted based on User's Feedback



Why is catch(Exception) almost always a bad idea?..

Answer / subasini

Catch(Exception) is Bad Because Of It supress your Fault in
the coding

Is This Answer Correct ?    4 Yes 2 No

Why is catch(Exception) almost always a bad idea?..

Answer / senthilselvan

if you know what kind of error may occur in that block mean
, will it be right to use catch block without handling the
proper validation?

Is This Answer Correct ?    2 Yes 1 No

Why is catch(Exception) almost always a bad idea?..

Answer / nagaraj

Catch(Exception) means that you catch all the exception
which might not occur. But, really we need to catch only
some type of exception, so we need to catch only those type
instead of catching all the exceptions.

Is This Answer Correct ?    1 Yes 0 No

Why is catch(Exception) almost always a bad idea?..

Answer / 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

More ASP.NET Interview Questions

what is generics?

2 Answers   Microsoft,


Differentiate between client-side and server-side validations in web pages.

0 Answers  


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

0 Answers  


can i call the java script to code behind file?if yes how?

4 Answers   Wipro,


define silverlight and advantages ?

3 Answers   QA,






Breifly explain about stack and heap memory Managemet?

2 Answers  


Describe the difference between inline and code behind?

2 Answers  


What is mvc in angular?

0 Answers  


Explain the advantages of asp.net.

0 Answers  


What is the difference between application state and session state in asp net?

0 Answers  


what are the events raised in asp.net page life cycle?in which stage view state can be loaded?

0 Answers   EDS,


Asp.Net Source :- In my project i have gridview control - item template. Its have asp:button control. my requirement is while click this button i need to display some alert message. Could you please help me which gridview event i need to write source code? Please give me a quick response. Thanks

6 Answers  


Categories